mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +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 {
|
||||
return &getSubtargetImpl()->getInstrItineraryData();
|
||||
}
|
||||
|
||||
const DataLayout *getDataLayout() const override {
|
||||
return getSubtargetImpl()->getDataLayout();
|
||||
}
|
||||
/// \brief Register ARM analysis passes with a pass manager.
|
||||
void addAnalysisPasses(PassManagerBase &PM) override;
|
||||
|
||||
@ -93,9 +95,6 @@ class ARMTargetMachine : public ARMBaseTargetMachine {
|
||||
return &FrameLowering;
|
||||
}
|
||||
const ARMInstrInfo *getInstrInfo() const override { return &InstrInfo; }
|
||||
const DataLayout *getDataLayout() const override {
|
||||
return getSubtargetImpl()->getDataLayout();
|
||||
}
|
||||
};
|
||||
|
||||
/// ARMLETargetMachine - ARM little endian target machine.
|
||||
@ -160,9 +159,6 @@ public:
|
||||
const ARMFrameLowering *getFrameLowering() const override {
|
||||
return FrameLowering.get();
|
||||
}
|
||||
const DataLayout *getDataLayout() const override {
|
||||
return getSubtargetImpl()->getDataLayout();
|
||||
}
|
||||
};
|
||||
|
||||
/// ThumbLETargetMachine - Thumb little endian target machine.
|
||||
|
Loading…
Reference in New Issue
Block a user