OSDN Git Service

Make sure any client of Dominators.h links in Dominators.cpp
authorChris Lattner <sabre@nondot.org>
Thu, 14 Oct 2004 15:46:59 +0000 (15:46 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 14 Oct 2004 15:46:59 +0000 (15:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16986 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/Dominators.h

index 736e508..11d4b98 100644 (file)
@@ -268,6 +268,9 @@ struct DominatorSet : public DominatorSetBase {
     AU.addRequired<ImmediateDominators>();
     AU.setPreservesAll();
   }
+
+  // stub - dummy function, just ignore it
+  static void stub();
 };
 
 
@@ -506,6 +509,9 @@ private:
                               const DominatorTree::Node *Node);
 };
 
+// Make sure that any clients of this file link in Dominators.cpp
+static IncludeFile
+DOMINATORS_INCLUDE_FILE((void*)&DominatorSet::stub);
 } // End llvm namespace
 
 #endif