diff options
author | Eric Christopher <echristo@gmail.com> | 2014-06-18 22:48:09 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-06-18 22:48:09 +0000 |
commit | 887a5c7f5da73ada835985d1f9552ff1716517a7 (patch) | |
tree | 9ef621d0b6553c271c974eb42bb364058682c8d0 /lib/Target/ARM/ARMTargetMachine.h | |
parent | 2ea6d93c5ea813994852e35f01314ccbcec02bce (diff) | |
download | llvm-887a5c7f5da73ada835985d1f9552ff1716517a7.tar.gz llvm-887a5c7f5da73ada835985d1f9552ff1716517a7.tar.bz2 llvm-887a5c7f5da73ada835985d1f9552ff1716517a7.tar.xz |
Move ARMJITInfo off of the TargetMachine and down onto the subtarget.
This required untangling a mess of headers that included around.
This a recommit of r210953 with a fix for the removed accessor
for JITInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211233 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMTargetMachine.h')
-rw-r--r-- | lib/Target/ARM/ARMTargetMachine.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Target/ARM/ARMTargetMachine.h b/lib/Target/ARM/ARMTargetMachine.h index 1549277860..737c2fae1a 100644 --- a/lib/Target/ARM/ARMTargetMachine.h +++ b/lib/Target/ARM/ARMTargetMachine.h @@ -32,10 +32,6 @@ namespace llvm { class ARMBaseTargetMachine : public LLVMTargetMachine { protected: ARMSubtarget Subtarget; - -private: - ARMJITInfo JITInfo; - public: ARMBaseTargetMachine(const Target &T, StringRef TT, StringRef CPU, StringRef FS, @@ -44,7 +40,6 @@ public: CodeGenOpt::Level OL, bool isLittle); - ARMJITInfo *getJITInfo() override { return &JITInfo; } const ARMSubtarget *getSubtargetImpl() const override { return &Subtarget; } const ARMTargetLowering *getTargetLowering() const override { // Implemented by derived classes @@ -56,6 +51,8 @@ public: const DataLayout *getDataLayout() const override { return getSubtargetImpl()->getDataLayout(); } + ARMJITInfo *getJITInfo() override { return Subtarget.getJITInfo(); } + /// \brief Register ARM analysis passes with a pass manager. void addAnalysisPasses(PassManagerBase &PM) override; |