diff options
author | Eric Christopher <echristo@gmail.com> | 2014-06-12 22:19:51 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-06-12 22:19:51 +0000 |
commit | ad807370e9e8ed20b9abb9f3f401e83080ad0f38 (patch) | |
tree | 312f7599f509be93808f870f5c62a13c17f00858 /lib/Target/PowerPC/PPCJITInfo.h | |
parent | 01d3cb816771a8de2f8ba5878106f8709c1cc36f (diff) | |
download | llvm-ad807370e9e8ed20b9abb9f3f401e83080ad0f38.tar.gz llvm-ad807370e9e8ed20b9abb9f3f401e83080ad0f38.tar.bz2 llvm-ad807370e9e8ed20b9abb9f3f401e83080ad0f38.tar.xz |
Remove the use of TargetMachine from PPCJITInfo and replace with
the subtarget. Also remove unnecessary argument to the constructor
at the same time, we already have access via the subtarget.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210844 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCJITInfo.h')
-rw-r--r-- | lib/Target/PowerPC/PPCJITInfo.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/PowerPC/PPCJITInfo.h b/lib/Target/PowerPC/PPCJITInfo.h index 0693e3e86c..033b7e3222 100644 --- a/lib/Target/PowerPC/PPCJITInfo.h +++ b/lib/Target/PowerPC/PPCJITInfo.h @@ -14,20 +14,20 @@ #ifndef POWERPC_JITINFO_H #define POWERPC_JITINFO_H +#include "PPCSubtarget.h" #include "llvm/CodeGen/JITCodeEmitter.h" #include "llvm/Target/TargetJITInfo.h" namespace llvm { - class PPCTargetMachine; class PPCJITInfo : public TargetJITInfo { protected: - PPCTargetMachine &TM; + PPCSubtarget &Subtarget; bool is64Bit; public: - PPCJITInfo(PPCTargetMachine &tm, bool tmIs64Bit) : TM(tm) { + PPCJITInfo(PPCSubtarget &STI) + : Subtarget(STI), is64Bit(STI.isPPC64()) { useGOT = 0; - is64Bit = tmIs64Bit; } StubLayout getStubLayout() override; |