diff options
| author | Eric Christopher <echristo@gmail.com> | 2015-03-12 01:42:51 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2015-03-12 01:42:51 +0000 |
| commit | ea178cf48fc2698e43fefba8fe8d2351f713d741 (patch) | |
| tree | 3ae8f5e475a886f8d3cef154f4d07a5bb49b8cde /llvm/lib/Target/PowerPC/PPCInstrInfo.cpp | |
| parent | 22b9f6a12d816b22198e44f0c4bb249761046d35 (diff) | |
| download | bcm5719-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.cpp | 2 |
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. |

