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/Alpha/AlphaTargetMachine.h | |
parent | 1d5562f72e3f7d9e17a2bf95afa54a98dac95894 (diff) |
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/Alpha/AlphaTargetMachine.h')
-rw-r--r-- | lib/Target/Alpha/AlphaTargetMachine.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/Alpha/AlphaTargetMachine.h b/lib/Target/Alpha/AlphaTargetMachine.h index d365b7d29b..eab34c2afa 100644 --- a/lib/Target/Alpha/AlphaTargetMachine.h +++ b/lib/Target/Alpha/AlphaTargetMachine.h @@ -42,15 +42,15 @@ public: virtual const AlphaInstrInfo *getInstrInfo() const { return &InstrInfo; } virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; } - virtual const TargetSubtarget *getSubtargetImpl() const{ return &Subtarget; } - virtual const TargetRegisterInfo *getRegisterInfo() const { + virtual const AlphaSubtarget *getSubtargetImpl() const{ return &Subtarget; } + virtual const AlphaRegisterInfo *getRegisterInfo() const { return &InstrInfo.getRegisterInfo(); } - virtual TargetLowering* getTargetLowering() const { + virtual AlphaTargetLowering* getTargetLowering() const { return const_cast<AlphaTargetLowering*>(&TLInfo); } virtual const TargetData *getTargetData() const { return &DataLayout; } - virtual TargetJITInfo* getJITInfo() { + virtual AlphaJITInfo* getJITInfo() { return &JITInfo; } |