Add a note about a potential PIC optimization.
[oota-llvm.git] / include / llvm / Analysis / ValueNumbering.h
index 6169955d94c1b449ac0089257c40ca8b2ce21fd1..72452acda15bdb7d4499fac5b9d39332f0459a1d 100644 (file)
@@ -2,8 +2,8 @@
 //
 //                     The LLVM Compiler Infrastructure
 //
-// This file was developed by the LLVM research group and is distributed under
-// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
 //
 //===----------------------------------------------------------------------===//
 //
@@ -22,6 +22,7 @@
 
 #include <vector>
 #include "llvm/Pass.h"
+#include "llvm/System/IncludeFile.h"
 
 namespace llvm {
 
@@ -29,6 +30,7 @@ class Value;
 class Instruction;
 
 struct ValueNumbering {
+  static char ID; // Class identification, replacement for typeinfo
   virtual ~ValueNumbering();    // We want to be subclassed
 
   /// getEqualNumberNodes - Return nodes with the same value number as the
@@ -65,10 +67,9 @@ struct ValueNumbering {
   }
 };
 
-extern void BasicValueNumberingStub();
-static IncludeFile
-HDR_INCLUDE_VALUENUMBERING_CPP((void*)&BasicValueNumberingStub);
-
 } // End llvm namespace
 
+// Force any file including this header to get the implementation as well
+FORCE_DEFINING_FILE_TO_BE_LINKED(BasicValueNumbering)
+
 #endif