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 | b2247c71f6be3cb12c8aaf47c45d225e2e056856 (patch) | |
| tree | 35aa274b30afce7d03e13903ae0e6ad7bd4c321d /lib/CodeGen | |
| parent | c5f7bb4d203754a38d85c6a8537499ce264245fb (diff) | |
| download | external_llvm-b2247c71f6be3cb12c8aaf47c45d225e2e056856.zip external_llvm-b2247c71f6be3cb12c8aaf47c45d225e2e056856.tar.gz external_llvm-b2247c71f6be3cb12c8aaf47c45d225e2e056856.tar.bz2 | |
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')
| -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 138e711..f50fd5a 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. |
