summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit54367e01ccf2fb686ffa86d48c5ea1d05c348116 (patch)
tree67885d716a9e953d7a052f56a28dad70a0b8408c /llvm/lib/Target/PowerPC/PPCJITInfo.h
parent96f6ef2575e6eca76df48b109eea5d17bf488883 (diff)
downloadbcm5719-llvm-54367e01ccf2fb686ffa86d48c5ea1d05c348116.tar.gz
bcm5719-llvm-54367e01ccf2fb686ffa86d48c5ea1d05c348116.zip
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. llvm-svn: 210844
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCJITInfo.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPCJITInfo.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCJITInfo.h b/llvm/lib/Target/PowerPC/PPCJITInfo.h
index 0693e3e86cd..033b7e32226 100644
--- a/llvm/lib/Target/PowerPC/PPCJITInfo.h
+++ b/llvm/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;
OpenPOWER on IntegriCloud