aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Alpha/AlphaLLRP.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-19 22:59:26 +0000
committerChris Lattner <sabre@nondot.org>2006-12-19 22:59:26 +0000
commit95b2c7da5e83670881270c1cd231a240be0556d9 (patch)
treec7202943532cb7acd4e14353a1c002dc2c388fb3 /lib/Target/Alpha/AlphaLLRP.cpp
parentcecf56b0691b1f3e9ff4435b60f9bcbfd79f155a (diff)
eliminate static ctors for Statistic objects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32703 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaLLRP.cpp')
-rw-r--r--lib/Target/Alpha/AlphaLLRP.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Target/Alpha/AlphaLLRP.cpp b/lib/Target/Alpha/AlphaLLRP.cpp
index 6e59e466b6..a5c984eaf6 100644
--- a/lib/Target/Alpha/AlphaLLRP.cpp
+++ b/lib/Target/Alpha/AlphaLLRP.cpp
@@ -8,10 +8,11 @@
//===----------------------------------------------------------------------===//
//
// Here we check for potential replay traps introduced by the spiller
-// We also align some branch targets if we can do so for free
+// We also align some branch targets if we can do so for free.
+//
//===----------------------------------------------------------------------===//
-
+#define DEBUG_TYPE "alpha-nops"
#include "Alpha.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
@@ -22,11 +23,10 @@
#include "llvm/Support/CommandLine.h"
using namespace llvm;
-namespace {
- Statistic nopintro("alpha-nops", "Number of nops inserted");
- Statistic nopalign("alpha-nops-align",
- "Number of nops inserted for alignment");
+STATISTIC(nopintro, "Number of nops inserted");
+STATISTIC(nopalign, "Number of nops inserted for alignment");
+namespace {
cl::opt<bool>
AlignAll("alpha-align-all", cl::Hidden,
cl::desc("Align all blocks"));