summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCJITInfo.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-06-12 22:19:51 +0000
committerEric Christopher <echristo@gmail.com>2014-06-12 22:19:51 +0000
commitad807370e9e8ed20b9abb9f3f401e83080ad0f38 (patch)
tree312f7599f509be93808f870f5c62a13c17f00858 /lib/Target/PowerPC/PPCJITInfo.h
parent01d3cb816771a8de2f8ba5878106f8709c1cc36f (diff)
downloadllvm-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.h8
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;