[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCISelLowering.cpp PPCTargetMachine.h
Chris Lattner
lattner at cs.uiuc.edu
Fri May 12 14:10:09 PDT 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCISelLowering.cpp updated: 1.169 -> 1.170
PPCTargetMachine.h updated: 1.20 -> 1.21
---
Log message:
Remove dead var, fix bad override.
---
Diffs of the changes: (+3 -2)
PPCISelLowering.cpp | 1 -
PPCTargetMachine.h | 4 +++-
2 files changed, 3 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff -u llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.169 llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.170
--- llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.169 Fri Apr 28 16:56:10 2006
+++ llvm/lib/Target/PowerPC/PPCISelLowering.cpp Fri May 12 16:09:57 2006
@@ -1722,7 +1722,6 @@
//
MachineFunction &MF = DAG.getMachineFunction();
MachineFrameInfo *MFI = MF.getFrameInfo();
- MachineBasicBlock& BB = MF.front();
SSARegMap *RegMap = MF.getSSARegMap();
std::vector<SDOperand> ArgValues;
Index: llvm/lib/Target/PowerPC/PPCTargetMachine.h
diff -u llvm/lib/Target/PowerPC/PPCTargetMachine.h:1.20 llvm/lib/Target/PowerPC/PPCTargetMachine.h:1.21
--- llvm/lib/Target/PowerPC/PPCTargetMachine.h:1.20 Fri May 12 01:33:48 2006
+++ llvm/lib/Target/PowerPC/PPCTargetMachine.h Fri May 12 16:09:57 2006
@@ -41,7 +41,9 @@
virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
virtual TargetJITInfo *getJITInfo() { return &JITInfo; }
virtual const TargetSubtarget *getSubtargetImpl() const{ return &Subtarget; }
- virtual PPCTargetLowering *getTargetLowering() { return &TLInfo; }
+ virtual PPCTargetLowering *getTargetLowering() const {
+ return const_cast<PPCTargetLowering*>(&TLInfo);
+ }
virtual const MRegisterInfo *getRegisterInfo() const {
return &InstrInfo.getRegisterInfo();
}
More information about the llvm-commits
mailing list