diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp index c6bc22e7967..44a654bc5b7 100644 --- a/lib/Bytecode/Writer/Writer.cpp +++ b/lib/Bytecode/Writer/Writer.cpp @@ -17,6 +17,7 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "bytecodewriter" #include "WriterInternals.h" #include "llvm/Bytecode/WriteBytecodePass.h" #include "llvm/CallingConv.h" @@ -45,8 +46,7 @@ const unsigned BCVersionNum = 7; static RegisterPass X("emitbytecode", "Bytecode Writer"); -static Statistic -BytesWritten("bytecodewriter", "Number of bytecode bytes written"); +STATISTIC(BytesWritten, "Number of bytecode bytes written"); //===----------------------------------------------------------------------===// //=== Output Primitives ===// diff --git a/lib/Transforms/IPO/SimplifyLibCalls.cpp b/lib/Transforms/IPO/SimplifyLibCalls.cpp index 08ae1994a6e..bbe020ce1e9 100644 --- a/lib/Transforms/IPO/SimplifyLibCalls.cpp +++ b/lib/Transforms/IPO/SimplifyLibCalls.cpp @@ -73,11 +73,11 @@ public: /// optimized by the subclass. /// @brief Constructor that registers the optimization. LibCallOptimization(const char *FName, const char *Description) - : FunctionName(FName) + : FunctionName(FName) { + #ifndef NDEBUG - , occurrences("simplify-libcalls", Description) + occurrences.construct("simplify-libcalls", Description); #endif - { // Register this optimizer in the list of optimizations. Next = OptList; OptList = this;