X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FAnalysis%2FInstCount.cpp;h=3b385d26ba3c07245a6cdfcce01b18ac86a167ee;hb=83a8031336a1155e6b0c3e9a84164324e08d1c8b;hp=bb2cf53c85efdfa859e6f1a22ff72005edac2e57;hpb=b64ca1385a459da0e10e43c81bf26bb177b24e29;p=oota-llvm.git diff --git a/lib/Analysis/InstCount.cpp b/lib/Analysis/InstCount.cpp index bb2cf53c85e..3b385d26ba3 100644 --- a/lib/Analysis/InstCount.cpp +++ b/lib/Analysis/InstCount.cpp @@ -51,7 +51,9 @@ namespace { } public: static char ID; // Pass identification, replacement for typeid - InstCount() : FunctionPass(&ID) {} + InstCount() : FunctionPass(ID) { + initializeInstCountPass(*PassRegistry::getPassRegistry()); + } virtual bool runOnFunction(Function &F); @@ -64,8 +66,8 @@ namespace { } char InstCount::ID = 0; -static RegisterPass -X("instcount", "Counts the various types of Instructions", false, true); +INITIALIZE_PASS(InstCount, "instcount", + "Counts the various types of Instructions", false, true) FunctionPass *llvm::createInstCountPass() { return new InstCount(); }