diff options
author | Eric Christopher <echristo@gmail.com> | 2015-01-27 08:48:42 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-01-27 08:48:42 +0000 |
commit | 337262068f8daa54a8558980d7780a069b8846c2 (patch) | |
tree | bad942e62e2264f22587153dc764af4fad02b0c2 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | f9d020d41209b783fd29d79b7b63e6807edd75ea (diff) | |
download | llvm-337262068f8daa54a8558980d7780a069b8846c2.zip llvm-337262068f8daa54a8558980d7780a069b8846c2.tar.gz llvm-337262068f8daa54a8558980d7780a069b8846c2.tar.bz2 |
Replace some uses of getSubtargetImpl with the cached version
off of the MachineFunction or with the version that takes a
Function reference as an argument.
llvm-svn: 227185
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 186b151..937cf03 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -600,8 +600,7 @@ MachineFrameInfo::getPristineRegs(const MachineBasicBlock *MBB) const { assert(MBB && "MBB must be valid"); const MachineFunction *MF = MBB->getParent(); assert(MF && "MBB must be part of a MachineFunction"); - const TargetMachine &TM = MF->getTarget(); - const TargetRegisterInfo *TRI = TM.getSubtargetImpl()->getRegisterInfo(); + const TargetRegisterInfo *TRI = MF->getSubtarget().getRegisterInfo(); BitVector BV(TRI->getNumRegs()); // Before CSI is calculated, no registers are considered pristine. They can be |