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 | b41dfbac74597086869acab8c158bab979ff5d1b (patch) | |
tree | 5b816fae8992386047f06148379eb2d8733649e2 /lib/Target/PIC16/PIC16TargetMachine.h | |
parent | 0d9b1c27546f5a1fda819c4b1315b66e4da36745 (diff) | |
download | external_llvm-b41dfbac74597086869acab8c158bab979ff5d1b.zip external_llvm-b41dfbac74597086869acab8c158bab979ff5d1b.tar.gz external_llvm-b41dfbac74597086869acab8c158bab979ff5d1b.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/PIC16/PIC16TargetMachine.h')
-rw-r--r-- | lib/Target/PIC16/PIC16TargetMachine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PIC16/PIC16TargetMachine.h b/lib/Target/PIC16/PIC16TargetMachine.h index 93ef0d1..b89addc 100644 --- a/lib/Target/PIC16/PIC16TargetMachine.h +++ b/lib/Target/PIC16/PIC16TargetMachine.h @@ -47,7 +47,7 @@ public: { return &DataLayout; } virtual PIC16TargetLowering *getTargetLowering() const { return const_cast<PIC16TargetLowering*>(&TLInfo); } - virtual const TargetRegisterInfo *getRegisterInfo() const + virtual const PIC16RegisterInfo *getRegisterInfo() const { return &InstrInfo.getRegisterInfo(); } virtual bool addInstSelector(PassManagerBase &PM, bool Fast); |