summaryrefslogtreecommitdiff
path: root/lib/Transforms/Hello
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-19 22:24:09 +0000
committerChris Lattner <sabre@nondot.org>2006-12-19 22:24:09 +0000
commitcbfdd1f840630d8a899020e7fb05aa7fbdb52963 (patch)
treeb41c61101406cd16d2f7b81d1916c7fdb5086213 /lib/Transforms/Hello
parent61bc8f8ca4a5a8277b9c46486e5acd5648b9b9a3 (diff)
downloadllvm-cbfdd1f840630d8a899020e7fb05aa7fbdb52963.tar.gz
llvm-cbfdd1f840630d8a899020e7fb05aa7fbdb52963.tar.bz2
llvm-cbfdd1f840630d8a899020e7fb05aa7fbdb52963.tar.xz
eliminate static ctor from example.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Hello')
-rw-r--r--lib/Transforms/Hello/Hello.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Transforms/Hello/Hello.cpp b/lib/Transforms/Hello/Hello.cpp
index 0b0010df0f..a12a8a68cd 100644
--- a/lib/Transforms/Hello/Hello.cpp
+++ b/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) {