diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-12-19 23:16:47 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-12-19 23:16:47 +0000 |
| commit | 575d3218abacb04445500f66a7b3901a5326c8de (patch) | |
| tree | 544d05b85e49552e8875e7312d06cb8b6358bb17 /llvm | |
| parent | 85f3c060039aea35cf9855c64028561eb99384d7 (diff) | |
| download | bcm5719-llvm-575d3218abacb04445500f66a7b3901a5326c8de.tar.gz bcm5719-llvm-575d3218abacb04445500f66a7b3901a5326c8de.zip | |
switch statistics over to not use static ctors.
llvm-svn: 32709
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Bytecode/Writer/Writer.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Bytecode/Writer/Writer.cpp b/llvm/lib/Bytecode/Writer/Writer.cpp index c6bc22e7967..44a654bc5b7 100644 --- a/llvm/lib/Bytecode/Writer/Writer.cpp +++ b/llvm/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<WriteBytecodePass> 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/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp b/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp index 08ae1994a6e..bbe020ce1e9 100644 --- a/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp +++ b/llvm/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; |

