[llvm-commits] CVS: llvm/lib/Transforms/Hello/Hello.cpp
Chris Lattner
sabre at nondot.org
Tue Dec 19 14:24:24 PST 2006
Changes in directory llvm/lib/Transforms/Hello:
Hello.cpp updated: 1.12 -> 1.13
---
Log message:
eliminate static ctor from example.
---
Diffs of the changes: (+3 -2)
Hello.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: llvm/lib/Transforms/Hello/Hello.cpp
diff -u llvm/lib/Transforms/Hello/Hello.cpp:1.12 llvm/lib/Transforms/Hello/Hello.cpp:1.13
--- llvm/lib/Transforms/Hello/Hello.cpp:1.12 Wed Dec 6 19:30:31 2006
+++ llvm/lib/Transforms/Hello/Hello.cpp Tue Dec 19 16:24:09 2006
@@ -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) {
More information about the llvm-commits
mailing list