mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
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
This commit is contained in:
@@ -39,12 +39,12 @@ namespace llvm {
|
||||
{ return &InstrInfo; }
|
||||
virtual const TargetFrameInfo *getFrameInfo() const
|
||||
{ return &FrameInfo; }
|
||||
virtual const TargetSubtarget *getSubtargetImpl() const
|
||||
virtual const MipsSubtarget *getSubtargetImpl() const
|
||||
{ return &Subtarget; }
|
||||
virtual const TargetData *getTargetData() const
|
||||
{ return &DataLayout;}
|
||||
|
||||
virtual const TargetRegisterInfo *getRegisterInfo() const {
|
||||
virtual const MipsRegisterInfo *getRegisterInfo() const {
|
||||
return &InstrInfo.getRegisterInfo();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user