summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/NVPTX/NVPTXInstrInfo.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-06-27 01:27:08 +0000
committerEric Christopher <echristo@gmail.com>2014-06-27 01:27:08 +0000
commite032a8c0bd7a06c2ddc15d2ca0f909352c938f4d (patch)
treed018767c1a2b8fdda093355e533869c82ad27b5f /llvm/lib/Target/NVPTX/NVPTXInstrInfo.cpp
parenta1869461e15a47857b2d5845f6071aeaffe3bb85 (diff)
downloadbcm5719-llvm-e032a8c0bd7a06c2ddc15d2ca0f909352c938f4d.tar.gz
bcm5719-llvm-e032a8c0bd7a06c2ddc15d2ca0f909352c938f4d.zip
Remove caching of the target machine in NVPTXInstrInfo and
update constructor accordingly. llvm-svn: 211840
Diffstat (limited to 'llvm/lib/Target/NVPTX/NVPTXInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/NVPTX/NVPTXInstrInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/NVPTX/NVPTXInstrInfo.cpp b/llvm/lib/Target/NVPTX/NVPTXInstrInfo.cpp
index cdc80887dc2..b5b4fbed079 100644
--- a/llvm/lib/Target/NVPTX/NVPTXInstrInfo.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXInstrInfo.cpp
@@ -29,8 +29,8 @@ using namespace llvm;
void NVPTXInstrInfo::anchor() {}
// FIXME: Add the subtarget support on this constructor.
-NVPTXInstrInfo::NVPTXInstrInfo(NVPTXTargetMachine &tm)
- : NVPTXGenInstrInfo(), TM(tm), RegInfo(*TM.getSubtargetImpl()) {}
+NVPTXInstrInfo::NVPTXInstrInfo(NVPTXSubtarget &STI)
+ : NVPTXGenInstrInfo(), RegInfo(STI) {}
void NVPTXInstrInfo::copyPhysReg(
MachineBasicBlock &MBB, MachineBasicBlock::iterator I, DebugLoc DL,
OpenPOWER on IntegriCloud