summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PrologEpilogInserter.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-03-09 21:45:49 +0000
committerJim Grosbach <grosbach@apple.com>2010-03-09 21:45:49 +0000
commitfae913adf8941634290f6c69639701ca2f24628f (patch)
tree80f429bd687a0efae166bd580ea96072088a51ce /llvm/lib/CodeGen/PrologEpilogInserter.cpp
parent15804db55c5ddf25d8b4e01f04a9f04157e0c51d (diff)
downloadbcm5719-llvm-fae913adf8941634290f6c69639701ca2f24628f.tar.gz
bcm5719-llvm-fae913adf8941634290f6c69639701ca2f24628f.zip
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. llvm-svn: 98086
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r--llvm/lib/CodeGen/PrologEpilogInserter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
index 138e7110306..f50fd5a09bd 100644
--- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud