[llvm-commits] CVS: llvm/lib/Target/X86/X86AsmPrinter.cpp X86AsmPrinter.h X86CodeEmitter.cpp X86FloatingPoint.cpp X86ISelDAGToDAG.cpp

Chris Lattner sabre at nondot.org
Wed Dec 6 09:47:31 PST 2006



Changes in directory llvm/lib/Target/X86:

X86AsmPrinter.cpp updated: 1.219 -> 1.220
X86AsmPrinter.h updated: 1.36 -> 1.37
X86CodeEmitter.cpp updated: 1.126 -> 1.127
X86FloatingPoint.cpp updated: 1.63 -> 1.64
X86ISelDAGToDAG.cpp updated: 1.136 -> 1.137
---
Log message:

Detemplatize the Statistic class.  The only type it is instantiated with
is 'unsigned'.



---
Diffs of the changes:  (+7 -7)

 X86AsmPrinter.cpp    |    2 +-
 X86AsmPrinter.h      |    2 +-
 X86CodeEmitter.cpp   |    2 +-
 X86FloatingPoint.cpp |    4 ++--
 X86ISelDAGToDAG.cpp  |    4 ++--
 5 files changed, 7 insertions(+), 7 deletions(-)


Index: llvm/lib/Target/X86/X86AsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86AsmPrinter.cpp:1.219 llvm/lib/Target/X86/X86AsmPrinter.cpp:1.220
--- llvm/lib/Target/X86/X86AsmPrinter.cpp:1.219	Fri Dec  1 14:47:11 2006
+++ llvm/lib/Target/X86/X86AsmPrinter.cpp	Wed Dec  6 11:46:32 2006
@@ -30,7 +30,7 @@
 
 using namespace llvm;
 
-Statistic<> llvm::EmittedInsts("asm-printer",
+Statistic llvm::EmittedInsts("asm-printer",
                                "Number of machine instrs printed");
 
 static X86FunctionInfo calculateFunctionInfo(const Function *F,


Index: llvm/lib/Target/X86/X86AsmPrinter.h
diff -u llvm/lib/Target/X86/X86AsmPrinter.h:1.36 llvm/lib/Target/X86/X86AsmPrinter.h:1.37
--- llvm/lib/Target/X86/X86AsmPrinter.h:1.36	Thu Nov 30 18:25:12 2006
+++ llvm/lib/Target/X86/X86AsmPrinter.h	Wed Dec  6 11:46:32 2006
@@ -28,7 +28,7 @@
 
 namespace llvm {
 
-extern Statistic<> EmittedInsts;
+extern Statistic EmittedInsts;
 
 // FIXME: Move this to CodeGen/AsmPrinter.h
 namespace PICStyle {


Index: llvm/lib/Target/X86/X86CodeEmitter.cpp
diff -u llvm/lib/Target/X86/X86CodeEmitter.cpp:1.126 llvm/lib/Target/X86/X86CodeEmitter.cpp:1.127
--- llvm/lib/Target/X86/X86CodeEmitter.cpp:1.126	Tue Dec  5 01:29:55 2006
+++ llvm/lib/Target/X86/X86CodeEmitter.cpp	Wed Dec  6 11:46:32 2006
@@ -29,7 +29,7 @@
 using namespace llvm;
 
 namespace {
-  Statistic<>
+  Statistic
   NumEmitted("x86-emitter", "Number of machine instructions emitted");
 }
 


Index: llvm/lib/Target/X86/X86FloatingPoint.cpp
diff -u llvm/lib/Target/X86/X86FloatingPoint.cpp:1.63 llvm/lib/Target/X86/X86FloatingPoint.cpp:1.64
--- llvm/lib/Target/X86/X86FloatingPoint.cpp:1.63	Fri Dec  1 04:11:51 2006
+++ llvm/lib/Target/X86/X86FloatingPoint.cpp	Wed Dec  6 11:46:32 2006
@@ -49,8 +49,8 @@
 using namespace llvm;
 
 namespace {
-  Statistic<> NumFXCH("x86-codegen", "Number of fxch instructions inserted");
-  Statistic<> NumFP  ("x86-codegen", "Number of floating point instructions");
+  Statistic NumFXCH("x86-codegen", "Number of fxch instructions inserted");
+  Statistic NumFP  ("x86-codegen", "Number of floating point instructions");
 
   struct VISIBILITY_HIDDEN FPS : public MachineFunctionPass {
     virtual bool runOnMachineFunction(MachineFunction &MF);


Index: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
diff -u llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.136 llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.137
--- llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.136	Tue Dec  5 16:03:40 2006
+++ llvm/lib/Target/X86/X86ISelDAGToDAG.cpp	Wed Dec  6 11:46:32 2006
@@ -76,10 +76,10 @@
 }
 
 namespace {
-  Statistic<>
+  Statistic
   NumFPKill("x86-codegen", "Number of FP_REG_KILL instructions added");
 
-  Statistic<>
+  Statistic
   NumLoadMoved("x86-codegen", "Number of loads moved below TokenFactor");
 
   //===--------------------------------------------------------------------===//






More information about the llvm-commits mailing list