aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PIC16/PIC16TargetMachine.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-14 01:58:56 +0000
committerDan Gohman <gohman@apple.com>2008-05-14 01:58:56 +0000
commitb41dfbac74597086869acab8c158bab979ff5d1b (patch)
tree5b816fae8992386047f06148379eb2d8733649e2 /lib/Target/PIC16/PIC16TargetMachine.h
parent0d9b1c27546f5a1fda819c4b1315b66e4da36745 (diff)
downloadexternal_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.h2
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);