mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Remove duplicate copy of InstrItineraryData from the TargetMachine,
it's already on the subtarget. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210289 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d94cd00219
commit
6d18c24e99
@ -78,7 +78,6 @@ X86TargetMachine::X86TargetMachine(const Target &T, StringRef TT,
|
||||
: LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL),
|
||||
Subtarget(TT, CPU, FS, Options.StackAlignmentOverride),
|
||||
FrameLowering(Subtarget),
|
||||
InstrItins(Subtarget.getInstrItineraryData()),
|
||||
DL(computeDataLayout(*getSubtargetImpl())),
|
||||
InstrInfo(*this),
|
||||
TLInfo(*this),
|
||||
|
@ -31,7 +31,6 @@ class X86TargetMachine final : public LLVMTargetMachine {
|
||||
virtual void anchor();
|
||||
X86Subtarget Subtarget;
|
||||
X86FrameLowering FrameLowering;
|
||||
InstrItineraryData InstrItins;
|
||||
const DataLayout DL; // Calculates type size & alignment
|
||||
X86InstrInfo InstrInfo;
|
||||
X86TargetLowering TLInfo;
|
||||
@ -65,7 +64,7 @@ public:
|
||||
return &getInstrInfo()->getRegisterInfo();
|
||||
}
|
||||
const InstrItineraryData *getInstrItineraryData() const override {
|
||||
return &InstrItins;
|
||||
return &getSubtargetImpl()->getInstrItineraryData();
|
||||
}
|
||||
|
||||
/// \brief Register X86 analysis passes with a pass manager.
|
||||
|
Loading…
Reference in New Issue
Block a user