diff options
| author | Dan Gohman <gohman@apple.com> | 2010-04-17 15:26:15 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-04-17 15:26:15 +0000 |
| commit | 21cea8ac2e4f71343e0871c635e335b576083f2b (patch) | |
| tree | 94f7138cee2cd97e664c0842bc0252d2d894148e /llvm/lib/Target/PowerPC/PPCTargetMachine.h | |
| parent | 31ae586c74b9c399d8c04c0e8effd61a4dcfd653 (diff) | |
| download | bcm5719-llvm-21cea8ac2e4f71343e0871c635e335b576083f2b.tar.gz bcm5719-llvm-21cea8ac2e4f71343e0871c635e335b576083f2b.zip | |
Use const qualifiers with TargetLowering. This eliminates several
const_casts, and it reinforces the design of the Target classes being
immutable.
SelectionDAGISel::IsLegalToFold is now a static member function, because
PIC16 uses it in an unconventional way. There is more room for API
cleanup here.
And PIC16's AsmPrinter no longer uses TargetLowering.
llvm-svn: 101635
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetMachine.h')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCTargetMachine.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.h b/llvm/lib/Target/PowerPC/PPCTargetMachine.h index ac9ae2b43fd..35e33a234c4 100644 --- a/llvm/lib/Target/PowerPC/PPCTargetMachine.h +++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.h @@ -44,8 +44,8 @@ public: virtual const PPCInstrInfo *getInstrInfo() const { return &InstrInfo; } virtual const PPCFrameInfo *getFrameInfo() const { return &FrameInfo; } virtual PPCJITInfo *getJITInfo() { return &JITInfo; } - virtual PPCTargetLowering *getTargetLowering() const { - return const_cast<PPCTargetLowering*>(&TLInfo); + virtual const PPCTargetLowering *getTargetLowering() const { + return &TLInfo; } virtual const PPCRegisterInfo *getRegisterInfo() const { return &InstrInfo.getRegisterInfo(); |

