summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCInstrInfo.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-06-12 21:48:52 +0000
committerEric Christopher <echristo@gmail.com>2014-06-12 21:48:52 +0000
commit1dcea735402bce3a412e165614d01f2f74275f3b (patch)
tree1a7a11bdf4b64f3325fd4438d5bbb80cf404c18d /llvm/lib/Target/PowerPC/PPCInstrInfo.h
parent3acea39853d1a5ef2f3920c27f5748778fe53af9 (diff)
downloadbcm5719-llvm-1dcea735402bce3a412e165614d01f2f74275f3b.tar.gz
bcm5719-llvm-1dcea735402bce3a412e165614d01f2f74275f3b.zip
Remove TargetMachine from PPCInstrInfo and all dependencies and
replace with the current subtarget. llvm-svn: 210836
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.h b/llvm/lib/Target/PowerPC/PPCInstrInfo.h
index d9db3e1b1dc..a89c68d88ac 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.h
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.h
@@ -65,7 +65,7 @@ enum PPC970_Unit {
class PPCInstrInfo : public PPCGenInstrInfo {
- PPCTargetMachine &TM;
+ PPCSubtarget &Subtarget;
const PPCRegisterInfo RI;
bool StoreRegToStackSlot(MachineFunction &MF,
@@ -80,7 +80,7 @@ class PPCInstrInfo : public PPCGenInstrInfo {
bool &NonRI, bool &SpillsVRS) const;
virtual void anchor();
public:
- explicit PPCInstrInfo(PPCTargetMachine &TM);
+ explicit PPCInstrInfo(PPCSubtarget &STI);
/// getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As
/// such, whenever a client has an instance of instruction info, it should
OpenPOWER on IntegriCloud