Changes in directory llvm/lib/Target/Sparc:
DelaySlotFiller.cpp updated: 1.12 -> 1.13 FPMover.cpp updated: 1.17 -> 1.18 SparcAsmPrinter.cpp updated: 1.74 -> 1.75 --- Log message: eliminate static ctors for Statistic objects. --- Diffs of the changes: (+10 -7) DelaySlotFiller.cpp | 5 +++-- FPMover.cpp | 7 ++++--- SparcAsmPrinter.cpp | 5 +++-- 3 files changed, 10 insertions(+), 7 deletions(-) Index: llvm/lib/Target/Sparc/DelaySlotFiller.cpp diff -u llvm/lib/Target/Sparc/DelaySlotFiller.cpp:1.12 llvm/lib/Target/Sparc/DelaySlotFiller.cpp:1.13 --- llvm/lib/Target/Sparc/DelaySlotFiller.cpp:1.12 Wed Dec 6 11:46:32 2006 +++ llvm/lib/Target/Sparc/DelaySlotFiller.cpp Tue Dec 19 16:59:26 2006 @@ -11,6 +11,7 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "delayslotfiller" #include "Sparc.h" #include "llvm/CodeGen/MachineFunctionPass.h" #include "llvm/CodeGen/MachineInstrBuilder.h" @@ -19,9 +20,9 @@ #include "llvm/ADT/Statistic.h" using namespace llvm; -namespace { - Statistic FilledSlots("delayslotfiller", "Num. of delay slots filled"); +STATISTIC(FilledSlots, "Number of delay slots filled"); +namespace { struct Filler : public MachineFunctionPass { /// Target machine description which we query for reg. names, data /// layout, etc. Index: llvm/lib/Target/Sparc/FPMover.cpp diff -u llvm/lib/Target/Sparc/FPMover.cpp:1.17 llvm/lib/Target/Sparc/FPMover.cpp:1.18 --- llvm/lib/Target/Sparc/FPMover.cpp:1.17 Thu Dec 7 16:21:48 2006 +++ llvm/lib/Target/Sparc/FPMover.cpp Tue Dec 19 16:59:26 2006 @@ -11,6 +11,7 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "fpmover" #include "Sparc.h" #include "SparcSubtarget.h" #include "llvm/CodeGen/MachineFunctionPass.h" @@ -21,10 +22,10 @@ #include "llvm/Support/Debug.h" using namespace llvm; -namespace { - Statistic NumFpDs("fpmover", "Number of instructions translated"); - Statistic NoopFpDs("fpmover", "Number of noop instructions removed"); +STATISTIC(NumFpDs , "Number of instructions translated"); +STATISTIC(NoopFpDs, "Number of noop instructions removed"); +namespace { struct FPMover : public MachineFunctionPass { /// Target machine description which we query for reg. names, data /// layout, etc. Index: llvm/lib/Target/Sparc/SparcAsmPrinter.cpp diff -u llvm/lib/Target/Sparc/SparcAsmPrinter.cpp:1.74 llvm/lib/Target/Sparc/SparcAsmPrinter.cpp:1.75 --- llvm/lib/Target/Sparc/SparcAsmPrinter.cpp:1.74 Thu Dec 7 16:21:48 2006 +++ llvm/lib/Target/Sparc/SparcAsmPrinter.cpp Tue Dec 19 16:59:26 2006 @@ -12,6 +12,7 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "asm-printer" #include "Sparc.h" #include "SparcInstrInfo.h" #include "llvm/Constants.h" @@ -32,9 +33,9 @@ #include <cctype> using namespace llvm; -namespace { - Statistic EmittedInsts("asm-printer", "Number of machine instrs printed"); +STATISTIC(EmittedInsts, "Number of machine instrs printed"); +namespace { struct VISIBILITY_HIDDEN SparcAsmPrinter : public AsmPrinter { SparcAsmPrinter(std::ostream &O, TargetMachine &TM, const TargetAsmInfo *T) : AsmPrinter(O, TM, T) { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits