diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:24:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:24:09 +0000 |
commit | 1fa216f5726f70d0b1e918eaee57000eacce306c (patch) | |
tree | dc954362267fcecf76261d03ebd30adcdba9b2f8 /llvm/lib/Transforms/Hello | |
parent | 40b29cac01a4eff7bc47a7b590f0cb37aac34d61 (diff) | |
download | bcm5719-llvm-1fa216f5726f70d0b1e918eaee57000eacce306c.tar.gz bcm5719-llvm-1fa216f5726f70d0b1e918eaee57000eacce306c.zip |
eliminate static ctor from example.
llvm-svn: 32696
Diffstat (limited to 'llvm/lib/Transforms/Hello')
-rw-r--r-- | llvm/lib/Transforms/Hello/Hello.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Hello/Hello.cpp b/llvm/lib/Transforms/Hello/Hello.cpp index 0b0010df0f3..a12a8a68cd9 100644 --- a/llvm/lib/Transforms/Hello/Hello.cpp +++ b/llvm/lib/Transforms/Hello/Hello.cpp @@ -12,6 +12,7 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "hello" #include "llvm/Pass.h" #include "llvm/Function.h" #include "llvm/ADT/StringExtras.h" @@ -20,9 +21,9 @@ #include "llvm/ADT/Statistic.h" using namespace llvm; +STATISTIC(HelloCounter, "Counts number of functions greeted"); + namespace { - Statistic HelloCounter("hellocount", - "Counts number of functions greeted"); // Hello - The first implementation, without getAnalysisUsage. struct Hello : public FunctionPass { virtual bool runOnFunction(Function &F) { |