[llvm-commits] CVS: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Thu Jun 3 00:47:05 PDT 2004
Changes in directory reopt/lib/LightWtProfiling:
UnpackTraceFunction.cpp updated: 1.78 -> 1.79
---
Log message:
Adjust to new target interfaces; TargetRegInfo --> SparcV9RegInfo.
---
Diffs of the changes: (+4 -4)
Index: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
diff -u reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.78 reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.79
--- reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.78 Sun May 30 14:39:49 2004
+++ reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp Thu Jun 3 00:40:29 2004
@@ -31,7 +31,7 @@
// Ripped off from SparcV9PrologEpilogInserter
unsigned UnpackTraceFunction::getStaticStackSize (MachineFunction &MF) {
- const TargetFrameInfo& frameInfo = MF.getTarget().getFrameInfo();
+ const TargetFrameInfo& frameInfo = *MF.getTarget().getFrameInfo();
unsigned staticStackSize = MF.getInfo()->getStaticStackSize();
@@ -69,7 +69,7 @@
/// back-end.
///
void UnpackTraceFunction::findRegsToSave (MachineFunction &MF) {
- const TargetRegInfo &TRI = TM->getRegInfo ();
+ const SparcV9RegInfo &TRI = *TM->getRegInfo ();
bool intCCRegSeen = false, floatCCRegSeen = false;
RegsToSave.clear ();
for (MachineFunction::iterator fi = MF.begin (), fe = MF.end ();
@@ -138,7 +138,7 @@
void UnpackTraceFunction::rewriteProlog (MachineFunction &MF,
MachineBasicBlock &E) {
- const TargetRegInfo &TRI = TM->getRegInfo ();
+ const SparcV9RegInfo &TRI = *TM->getRegInfo ();
static const unsigned sp = SparcV9::o6, fp = SparcV9::i6, g1 = SparcV9::g1,
g2 = SparcV9::g2;
@@ -208,7 +208,7 @@
void UnpackTraceFunction::rewriteEpilog (MachineFunction &MF,
MachineBasicBlock &MBB) {
- const TargetRegInfo &TRI = TM->getRegInfo ();
+ const SparcV9RegInfo &TRI = *TM->getRegInfo ();
static const unsigned fp = SparcV9::i6, sp = SparcV9::o6, g2 = SparcV9::g2;
// UTF epilog: start out by clearing everything out of the exit basic block
More information about the llvm-commits
mailing list