diff options
author | Eric Christopher <echristo@gmail.com> | 2015-03-11 22:42:13 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-03-11 22:42:13 +0000 |
commit | 9deb75d1766f7082dfd3aeae0e2970383c0e624c (patch) | |
tree | 237dfe8edcdb1b52a974ad1d7ee68be0120b47b0 /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | |
parent | 1c6ff0ac2e71ecbc5118e18262986abed4d5c3c9 (diff) | |
download | bcm5719-llvm-9deb75d1766f7082dfd3aeae0e2970383c0e624c.tar.gz bcm5719-llvm-9deb75d1766f7082dfd3aeae0e2970383c0e624c.zip |
Have getCallPreservedMask and getThisCallPreservedMask take a
MachineFunction argument so that we can grab subtarget specific
features off of it.
llvm-svn: 231979
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index 1df4a1d2051..faa36b038e7 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -801,7 +801,8 @@ bool FastISel::selectPatchpoint(const CallInst *I) { return false; // Push the register mask info. - Ops.push_back(MachineOperand::CreateRegMask(TRI.getCallPreservedMask(CC))); + Ops.push_back(MachineOperand::CreateRegMask( + TRI.getCallPreservedMask(*FuncInfo.MF, CC))); // Add scratch registers as implicit def and early clobber. const MCPhysReg *ScratchRegs = TLI.getScratchRegisters(CC); |