[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp PPCBranchSelector.cpp PPCISelDAGToDAG.cpp
Chris Lattner
sabre at nondot.org
Tue Dec 19 14:59:51 PST 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCAsmPrinter.cpp updated: 1.222 -> 1.223
PPCBranchSelector.cpp updated: 1.40 -> 1.41
PPCISelDAGToDAG.cpp updated: 1.228 -> 1.229
---
Log message:
eliminate static ctors for Statistic objects.
---
Diffs of the changes: (+5 -7)
PPCAsmPrinter.cpp | 4 ++--
PPCBranchSelector.cpp | 4 ++--
PPCISelDAGToDAG.cpp | 4 +---
3 files changed, 5 insertions(+), 7 deletions(-)
Index: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff -u llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.222 llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.223
--- llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.222 Sun Dec 17 21:37:18 2006
+++ llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp Tue Dec 19 16:59:26 2006
@@ -44,9 +44,9 @@
#include <set>
using namespace llvm;
-namespace {
- Statistic EmittedInsts("asm-printer", "Number of machine instrs printed");
+STATISTIC(EmittedInsts, "Number of machine instrs printed");
+namespace {
struct VISIBILITY_HIDDEN PPCAsmPrinter : public AsmPrinter {
std::set<std::string> FnStubs, GVStubs;
const PPCSubtarget &Subtarget;
Index: llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
diff -u llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.40 llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.41
--- llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.40 Wed Dec 6 11:46:32 2006
+++ llvm/lib/Target/PowerPC/PPCBranchSelector.cpp Tue Dec 19 16:59:26 2006
@@ -15,6 +15,7 @@
//
//===----------------------------------------------------------------------===//
+#define DEBUG_TYPE "ppc-branch-select"
#include "PPC.h"
#include "PPCInstrBuilder.h"
#include "PPCInstrInfo.h"
@@ -27,8 +28,7 @@
#include "llvm/Support/MathExtras.h"
using namespace llvm;
-static Statistic NumExpanded("ppc-branch-select",
- "Num branches expanded to long format");
+STATISTIC(NumExpanded, "Number of branches expanded to long format");
namespace {
struct VISIBILITY_HIDDEN PPCBSel : public MachineFunctionPass {
Index: llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
diff -u llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.228 llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.229
--- llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.228 Tue Dec 12 07:23:43 2006
+++ llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp Tue Dec 19 16:59:26 2006
@@ -12,6 +12,7 @@
//
//===----------------------------------------------------------------------===//
+#define DEBUG_TYPE "ppc-codegen"
#include "PPC.h"
#include "PPCPredicates.h"
#include "PPCTargetMachine.h"
@@ -23,7 +24,6 @@
#include "llvm/CodeGen/SelectionDAG.h"
#include "llvm/CodeGen/SelectionDAGISel.h"
#include "llvm/Target/TargetOptions.h"
-#include "llvm/ADT/Statistic.h"
#include "llvm/Constants.h"
#include "llvm/GlobalValue.h"
#include "llvm/Intrinsics.h"
@@ -35,8 +35,6 @@
using namespace llvm;
namespace {
- Statistic FrameOff("ppc-codegen", "Number of frame idx offsets collapsed");
-
//===--------------------------------------------------------------------===//
/// PPCDAGToDAGISel - PPC specific code to select PPC machine
/// instructions for SelectionDAG operations.
More information about the llvm-commits
mailing list