Do not use typeinfo to identify pass in pass manager.
[oota-llvm.git] / tools / bugpoint / ExtractFunction.cpp
index 1ff06f88b1c1c536735cbbc22c899d13f7859e0c..e4eb32f07a5da1306f60299d9ce7830b3d2a3ac8 100644 (file)
@@ -305,7 +305,11 @@ namespace {
   /// BlocksToNotExtract list.
   class BlockExtractorPass : public ModulePass {
     bool runOnModule(Module &M);
+  public:
+    static const int ID; // Pass ID, replacement for typeid
+    BlockExtractorPass() : ModulePass((intptr_t)&ID) {}
   };
+  const int BlockExtractorPass::ID = 0;
   RegisterPass<BlockExtractorPass>
   XX("extract-bbs", "Extract Basic Blocks From Module (for bugpoint use)");
 }