mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +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@210619 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e290e4abc3
commit
f68129838b
@ -72,18 +72,14 @@ static std::string getDataLayoutString(const PPCSubtarget &ST) {
|
||||
return Ret;
|
||||
}
|
||||
|
||||
PPCTargetMachine::PPCTargetMachine(const Target &T, StringRef TT,
|
||||
StringRef CPU, StringRef FS,
|
||||
const TargetOptions &Options,
|
||||
PPCTargetMachine::PPCTargetMachine(const Target &T, StringRef TT, StringRef CPU,
|
||||
StringRef FS, const TargetOptions &Options,
|
||||
Reloc::Model RM, CodeModel::Model CM,
|
||||
CodeGenOpt::Level OL,
|
||||
bool is64Bit)
|
||||
: LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL),
|
||||
Subtarget(TT, CPU, FS, is64Bit, OL),
|
||||
DL(getDataLayoutString(Subtarget)), InstrInfo(*this),
|
||||
FrameLowering(Subtarget), JITInfo(*this, is64Bit),
|
||||
TLInfo(*this), TSInfo(*this),
|
||||
InstrItins(Subtarget.getInstrItineraryData()) {
|
||||
CodeGenOpt::Level OL, bool is64Bit)
|
||||
: LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL),
|
||||
Subtarget(TT, CPU, FS, is64Bit, OL), DL(getDataLayoutString(Subtarget)),
|
||||
InstrInfo(*this), FrameLowering(Subtarget), JITInfo(*this, is64Bit),
|
||||
TLInfo(*this), TSInfo(*this) {
|
||||
initAsmInfo();
|
||||
}
|
||||
|
||||
|
@ -35,7 +35,6 @@ class PPCTargetMachine : public LLVMTargetMachine {
|
||||
PPCJITInfo JITInfo;
|
||||
PPCTargetLowering TLInfo;
|
||||
PPCSelectionDAGInfo TSInfo;
|
||||
InstrItineraryData InstrItins;
|
||||
|
||||
public:
|
||||
PPCTargetMachine(const Target &T, StringRef TT,
|
||||
@ -61,7 +60,7 @@ public:
|
||||
const DataLayout *getDataLayout() const override { return &DL; }
|
||||
const PPCSubtarget *getSubtargetImpl() const override { return &Subtarget; }
|
||||
const InstrItineraryData *getInstrItineraryData() const override {
|
||||
return &InstrItins;
|
||||
return &getSubtargetImpl()->getInstrItineraryData();
|
||||
}
|
||||
|
||||
// Pass Pipeline Configuration
|
||||
|
Loading…
Reference in New Issue
Block a user