diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-03-09 21:45:49 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-03-09 21:45:49 +0000 |
commit | dff4b4c5a7cc894d3b4b6c6e779ea8f47fa50630 (patch) | |
tree | 35aa274b30afce7d03e13903ae0e6ad7bd4c321d /lib/CodeGen/PrologEpilogInserter.cpp | |
parent | a2c618a0f08a331e3f45bd5108423b084c2986ed (diff) |
Change the Value argument to eliminateFrameIndex to a type-tagged value. This
is preparatory to having PEI's scavenged frame index value reuse logic
properly distinguish types of frame values (e.g., whether the value is
stack-pointer relative or frame-pointer relative).
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98086 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r-- | lib/CodeGen/PrologEpilogInserter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index 138e711030..f50fd5a09b 100644 --- a/lib/CodeGen/PrologEpilogInserter.cpp +++ b/lib/CodeGen/PrologEpilogInserter.cpp @@ -685,7 +685,7 @@ void PEI::replaceFrameIndices(MachineFunction &Fn) { // If this instruction has a FrameIndex operand, we need to // use that target machine register info object to eliminate // it. - int Value; + TargetRegisterInfo::FrameIndexValue Value; unsigned VReg = TRI.eliminateFrameIndex(MI, SPAdj, &Value, FrameIndexVirtualScavenging ? NULL : RS); @@ -693,7 +693,8 @@ void PEI::replaceFrameIndices(MachineFunction &Fn) { assert (FrameIndexVirtualScavenging && "Not scavenging, but virtual returned from " "eliminateFrameIndex()!"); - FrameConstantRegMap[VReg] = FrameConstantEntry(Value, SPAdj); + FrameConstantRegMap[VReg] = FrameConstantEntry(Value.second, + SPAdj); } // Reset the iterator if we were at the beginning of the BB. |