diff --git a/lib/Target/ARM/ARMTargetMachine.h b/lib/Target/ARM/ARMTargetMachine.h index 6d9a31bbb8e..15492778608 100644 --- a/lib/Target/ARM/ARMTargetMachine.h +++ b/lib/Target/ARM/ARMTargetMachine.h @@ -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.