diff options
author | Dan Gohman <gohman@apple.com> | 2008-05-14 01:58:56 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-05-14 01:58:56 +0000 |
commit | c9f5f3f64f896d0a8c8fa35a1dd98bc57b8960f6 (patch) | |
tree | 5b816fae8992386047f06148379eb2d8733649e2 /lib/Target/CellSPU | |
parent | 1d5562f72e3f7d9e17a2bf95afa54a98dac95894 (diff) | |
download | external_llvm-c9f5f3f64f896d0a8c8fa35a1dd98bc57b8960f6.zip external_llvm-c9f5f3f64f896d0a8c8fa35a1dd98bc57b8960f6.tar.gz external_llvm-c9f5f3f64f896d0a8c8fa35a1dd98bc57b8960f6.tar.bz2 |
Change target-specific classes to use more precise static types.
This eliminates the need for several awkward casts, including
the last dynamic_cast under lib/Target.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51091 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CellSPU')
-rw-r--r-- | lib/Target/CellSPU/SPUInstrInfo.h | 2 | ||||
-rw-r--r-- | lib/Target/CellSPU/SPUTargetMachine.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/CellSPU/SPUInstrInfo.h b/lib/Target/CellSPU/SPUInstrInfo.h index dc49202..9adffde 100644 --- a/lib/Target/CellSPU/SPUInstrInfo.h +++ b/lib/Target/CellSPU/SPUInstrInfo.h @@ -30,7 +30,7 @@ namespace llvm { /// such, whenever a client has an instance of instruction info, it should /// always be able to get register info as well (through this method). /// - virtual const TargetRegisterInfo &getRegisterInfo() const { return RI; } + virtual const SPURegisterInfo &getRegisterInfo() const { return RI; } /// getPointerRegClass - Return the register class to use to hold pointers. /// This is used for addressing modes. diff --git a/lib/Target/CellSPU/SPUTargetMachine.h b/lib/Target/CellSPU/SPUTargetMachine.h index c8f70d7..78fb547 100644 --- a/lib/Target/CellSPU/SPUTargetMachine.h +++ b/lib/Target/CellSPU/SPUTargetMachine.h @@ -49,7 +49,7 @@ public: virtual const SPUInstrInfo *getInstrInfo() const { return &InstrInfo; } - virtual const TargetFrameInfo *getFrameInfo() const { + virtual const SPUFrameInfo *getFrameInfo() const { return &FrameInfo; } /*! @@ -70,7 +70,7 @@ public: return const_cast<SPUTargetLowering*>(&TLInfo); } - virtual const TargetRegisterInfo *getRegisterInfo() const { + virtual const SPURegisterInfo *getRegisterInfo() const { return &InstrInfo.getRegisterInfo(); } |