Add explicit keywords.
[oota-llvm.git] / include / llvm / Analysis / ValueNumbering.h
index 8190b3fc7a52af57c716a36b44749d3e8f063973..64d528e56d065a95388380dfa295d3860663787a 100644 (file)
@@ -1,10 +1,10 @@
 //===- llvm/Analysis/ValueNumbering.h - Value #'ing Interface ---*- C++ -*-===//
-// 
+//
 //                     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 defines the abstract ValueNumbering interface, which is used as the
@@ -29,6 +29,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 +66,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