[llvm-commits] CVS: llvm/lib/Target/Sparc/DelaySlotFiller.cpp FPMover.cpp
Devang Patel
dpatel at apple.com
Wed May 2 14:41:25 PDT 2007
Changes in directory llvm/lib/Target/Sparc:
DelaySlotFiller.cpp updated: 1.14 -> 1.15
FPMover.cpp updated: 1.19 -> 1.20
---
Log message:
Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces
static const int, which defauts PassID based pass identification.
---
Diffs of the changes: (+4 -4)
DelaySlotFiller.cpp | 4 ++--
FPMover.cpp | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
Index: llvm/lib/Target/Sparc/DelaySlotFiller.cpp
diff -u llvm/lib/Target/Sparc/DelaySlotFiller.cpp:1.14 llvm/lib/Target/Sparc/DelaySlotFiller.cpp:1.15
--- llvm/lib/Target/Sparc/DelaySlotFiller.cpp:1.14 Tue May 1 16:15:46 2007
+++ llvm/lib/Target/Sparc/DelaySlotFiller.cpp Wed May 2 16:39:19 2007
@@ -30,7 +30,7 @@
TargetMachine &TM;
const TargetInstrInfo *TII;
- static const int ID;
+ static const char ID;
Filler(TargetMachine &tm)
: MachineFunctionPass((intptr_t)&ID), TM(tm), TII(tm.getInstrInfo()) { }
@@ -48,7 +48,7 @@
}
};
- const int Filler::ID = 0;
+ const char Filler::ID = 0;
} // end of anonymous namespace
/// createSparcDelaySlotFillerPass - Returns a pass that fills in delay
Index: llvm/lib/Target/Sparc/FPMover.cpp
diff -u llvm/lib/Target/Sparc/FPMover.cpp:1.19 llvm/lib/Target/Sparc/FPMover.cpp:1.20
--- llvm/lib/Target/Sparc/FPMover.cpp:1.19 Tue May 1 16:15:46 2007
+++ llvm/lib/Target/Sparc/FPMover.cpp Wed May 2 16:39:19 2007
@@ -32,7 +32,7 @@
///
TargetMachine &TM;
- static const int ID;
+ static const char ID;
FPMover(TargetMachine &tm)
: MachineFunctionPass((intptr_t)&ID), TM(tm) { }
@@ -43,7 +43,7 @@
bool runOnMachineBasicBlock(MachineBasicBlock &MBB);
bool runOnMachineFunction(MachineFunction &F);
};
- const int FPMover::ID = 0;
+ const char FPMover::ID = 0;
} // end of anonymous namespace
/// createSparcFPMoverPass - Returns a pass that turns FpMOVD
More information about the llvm-commits
mailing list