X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FAnalysis%2FInstCount.cpp;h=3b385d26ba3c07245a6cdfcce01b18ac86a167ee;hb=83a8031336a1155e6b0c3e9a84164324e08d1c8b;hp=32febd6ef055831fd7fb5a4dccf43cd8611de2c9;hpb=7268d97ae6c1680be96e5758c33cdd46efb6ce54;p=oota-llvm.git diff --git a/lib/Analysis/InstCount.cpp b/lib/Analysis/InstCount.cpp index 32febd6ef05..3b385d26ba3 100644 --- a/lib/Analysis/InstCount.cpp +++ b/lib/Analysis/InstCount.cpp @@ -45,13 +45,15 @@ namespace { #include "llvm/Instruction.def" - void visitInstruction(Instruction &I) ATTRIBUTE_UNUSED { + void visitInstruction(Instruction &I) { errs() << "Instruction Count does not know about " << I; llvm_unreachable(0); } public: static char ID; // Pass identification, replacement for typeid - InstCount() : FunctionPass(ID) {} + InstCount() : FunctionPass(ID) { + initializeInstCountPass(*PassRegistry::getPassRegistry()); + } virtual bool runOnFunction(Function &F); @@ -65,7 +67,7 @@ namespace { char InstCount::ID = 0; INITIALIZE_PASS(InstCount, "instcount", - "Counts the various types of Instructions", false, true); + "Counts the various types of Instructions", false, true) FunctionPass *llvm::createInstCountPass() { return new InstCount(); }