Use BasicBlock::iterator instead of Instruction* for insert points,
[oota-llvm.git] / include / llvm / Analysis / FindUsedTypes.h
index 6a128c80886a12fc2b06facd41a824743b4d3a3f..c897af3a58a63a902af8173e38ffc4b999fcc467 100644 (file)
 namespace llvm {
 
 class Type;
+class Value;
 
 class FindUsedTypes : public ModulePass {
   std::set<const Type *> UsedTypes;
 public:
   static char ID; // Pass identification, replacement for typeid
-  FindUsedTypes() : ModulePass((intptr_t)&ID, true) {}
+  FindUsedTypes() : ModulePass(&ID) {}
 
   /// getTypes - After the pass has been run, return the set containing all of
   /// the types used in the module.
@@ -61,7 +62,4 @@ public:
 
 } // End llvm namespace
 
-// Make sure that any clients of this file link in PostDominators.cpp
-FORCE_DEFINING_FILE_TO_BE_LINKED(FindUsedTypes)
-
 #endif