From adcb0582d8eb155d73cb743473788530a21e3a79 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 12 May 2006 21:09:57 +0000 Subject: [PATCH] Remove dead var, fix bad override. llvm-svn: 28264 --- lib/Target/PowerPC/PPCISelLowering.cpp | 1 - lib/Target/PowerPC/PPCTargetMachine.h | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 2e8ae80bddc..bc02c9a1241 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -1722,7 +1722,6 @@ PPCTargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) { // MachineFunction &MF = DAG.getMachineFunction(); MachineFrameInfo *MFI = MF.getFrameInfo(); - MachineBasicBlock& BB = MF.front(); SSARegMap *RegMap = MF.getSSARegMap(); std::vector ArgValues; diff --git a/lib/Target/PowerPC/PPCTargetMachine.h b/lib/Target/PowerPC/PPCTargetMachine.h index ea42989293b..06799457418 100644 --- a/lib/Target/PowerPC/PPCTargetMachine.h +++ b/lib/Target/PowerPC/PPCTargetMachine.h @@ -41,7 +41,9 @@ public: 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(&TLInfo); + } virtual const MRegisterInfo *getRegisterInfo() const { return &InstrInfo.getRegisterInfo(); }