[llvm-commits] CVS: llvm/lib/Target/ARM/ARMAsmPrinter.cpp
Chris Lattner
sabre at nondot.org
Tue Dec 19 14:59:51 PST 2006
Changes in directory llvm/lib/Target/ARM:
ARMAsmPrinter.cpp updated: 1.40 -> 1.41
---
Log message:
eliminate static ctors for Statistic objects.
---
Diffs of the changes: (+4 -2)
ARMAsmPrinter.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/ARM/ARMAsmPrinter.cpp
diff -u llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.40 llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.41
--- llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.40 Sun Dec 17 21:37:18 2006
+++ llvm/lib/Target/ARM/ARMAsmPrinter.cpp Tue Dec 19 16:59:25 2006
@@ -13,6 +13,7 @@
//
//===----------------------------------------------------------------------===//
+#define DEBUG_TYPE "asm-printer"
#include "ARM.h"
#include "ARMInstrInfo.h"
#include "llvm/Constants.h"
@@ -33,9 +34,9 @@
#include <cctype>
using namespace llvm;
-namespace {
- Statistic EmittedInsts("asm-printer", "Number of machine instrs printed");
+STATISTIC(EmittedInsts, "Number of machine instrs printed");
+namespace {
static const char *ARMCondCodeToString(ARMCC::CondCodes CC) {
switch (CC) {
default: assert(0 && "Unknown condition code");
@@ -144,6 +145,7 @@
II != E; ++II) {
// Print the assembly for the instruction.
O << "\t";
+ ++EmittedInsts;
printInstruction(II);
}
}
More information about the llvm-commits
mailing list