From e4f12201e3a827487b0aebb0ea6b773831dea4e9 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Mon, 16 Jun 2014 21:18:27 +0000 Subject: [PATCH] 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 --- lib/Target/ARM/ARMTargetMachine.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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.