eliminate static ctor from example.
authorChris Lattner <sabre@nondot.org>
Tue, 19 Dec 2006 22:24:09 +0000 (22:24 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 19 Dec 2006 22:24:09 +0000 (22:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32696 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Hello/Hello.cpp

index 0b0010df0f3d5808fa0a29cbf4ecceb0e05e9e0a..a12a8a68cd9b918ccf85dda7003a22857582fb18 100644 (file)
@@ -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) {