mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Since the DataLayout is always found off of the subtarget go ahead
and query the base target machine implementation for it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211055 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4031acb4cd
commit
e4f12201e3
@ -53,7 +53,9 @@ public:
|
|||||||
const InstrItineraryData *getInstrItineraryData() const override {
|
const InstrItineraryData *getInstrItineraryData() const override {
|
||||||
return &getSubtargetImpl()->getInstrItineraryData();
|
return &getSubtargetImpl()->getInstrItineraryData();
|
||||||
}
|
}
|
||||||
|
const DataLayout *getDataLayout() const override {
|
||||||
|
return getSubtargetImpl()->getDataLayout();
|
||||||
|
}
|
||||||
/// \brief Register ARM analysis passes with a pass manager.
|
/// \brief Register ARM analysis passes with a pass manager.
|
||||||
void addAnalysisPasses(PassManagerBase &PM) override;
|
void addAnalysisPasses(PassManagerBase &PM) override;
|
||||||
|
|
||||||
@ -93,9 +95,6 @@ class ARMTargetMachine : public ARMBaseTargetMachine {
|
|||||||
return &FrameLowering;
|
return &FrameLowering;
|
||||||
}
|
}
|
||||||
const ARMInstrInfo *getInstrInfo() const override { return &InstrInfo; }
|
const ARMInstrInfo *getInstrInfo() const override { return &InstrInfo; }
|
||||||
const DataLayout *getDataLayout() const override {
|
|
||||||
return getSubtargetImpl()->getDataLayout();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/// ARMLETargetMachine - ARM little endian target machine.
|
/// ARMLETargetMachine - ARM little endian target machine.
|
||||||
@ -160,9 +159,6 @@ public:
|
|||||||
const ARMFrameLowering *getFrameLowering() const override {
|
const ARMFrameLowering *getFrameLowering() const override {
|
||||||
return FrameLowering.get();
|
return FrameLowering.get();
|
||||||
}
|
}
|
||||||
const DataLayout *getDataLayout() const override {
|
|
||||||
return getSubtargetImpl()->getDataLayout();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/// ThumbLETargetMachine - Thumb little endian target machine.
|
/// ThumbLETargetMachine - Thumb little endian target machine.
|
||||||
|
Loading…
Reference in New Issue
Block a user