summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-03-12 01:42:51 +0000
committerEric Christopher <echristo@gmail.com>2015-03-12 01:42:51 +0000
commitea178cf48fc2698e43fefba8fe8d2351f713d741 (patch)
tree3ae8f5e475a886f8d3cef154f4d07a5bb49b8cde /llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
parent22b9f6a12d816b22198e44f0c4bb249761046d35 (diff)
downloadbcm5719-llvm-ea178cf48fc2698e43fefba8fe8d2351f713d741.tar.gz
bcm5719-llvm-ea178cf48fc2698e43fefba8fe8d2351f713d741.zip
Remove the need to cache the subtarget in the PowerPC TargetRegisterInfo
classes. Replace it with a cache to the TargetMachine and use that where applicable at the moment. llvm-svn: 232002
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
index fe9474a5de0..0a6be1ad747 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
@@ -61,7 +61,7 @@ void PPCInstrInfo::anchor() {}
PPCInstrInfo::PPCInstrInfo(PPCSubtarget &STI)
: PPCGenInstrInfo(PPC::ADJCALLSTACKDOWN, PPC::ADJCALLSTACKUP),
- Subtarget(STI), RI(STI) {}
+ Subtarget(STI), RI(STI.getTargetMachine()) {}
/// CreateTargetHazardRecognizer - Return the hazard recognizer to use for
/// this target when scheduling the DAG.
OpenPOWER on IntegriCloud