Do not use typeinfo to identify pass in pass manager.
[oota-llvm.git] / include / llvm / Analysis / FindUsedTypes.h
index 008e30c93efe4d6faa5e53288869d5f0f9294a88..de892f1b9cae0711588ad6c1d991d15bb39bb6ad 100644 (file)
@@ -24,6 +24,9 @@ class Type;
 class FindUsedTypes : public ModulePass {
   std::set<const Type *> UsedTypes;
 public:
+  static const int ID; // Pass identifcation, replacement for typeid
+  FindUsedTypes() : ModulePass((intptr_t)&ID) {}
+
   /// getTypes - After the pass has been run, return the set containing all of
   /// the types used in the module.
   ///