aboutsummaryrefslogtreecommitdiffstats
path: root/include
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
commitdff4b4c5a7cc894d3b4b6c6e779ea8f47fa50630 (patch)
tree35aa274b30afce7d03e13903ae0e6ad7bd4c321d /include
parenta2c618a0f08a331e3f45bd5108423b084c2986ed (diff)
downloadexternal_llvm-dff4b4c5a7cc894d3b4b6c6e779ea8f47fa50630.zip
external_llvm-dff4b4c5a7cc894d3b4b6c6e779ea8f47fa50630.tar.gz
external_llvm-dff4b4c5a7cc894d3b4b6c6e779ea8f47fa50630.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 'include')
-rw-r--r--include/llvm/Target/TargetRegisterInfo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetRegisterInfo.h b/include/llvm/Target/TargetRegisterInfo.h
index 212cc93..c197445 100644
--- a/include/llvm/Target/TargetRegisterInfo.h
+++ b/include/llvm/Target/TargetRegisterInfo.h
@@ -682,8 +682,9 @@ public:
/// When -enable-frame-index-scavenging is enabled, the virtual register
/// allocated for this frame index is returned and its value is stored in
/// *Value.
+ typedef std::pair<unsigned, int> FrameIndexValue;
virtual unsigned eliminateFrameIndex(MachineBasicBlock::iterator MI,
- int SPAdj, int *Value = NULL,
+ int SPAdj, FrameIndexValue *Value = NULL,
RegScavenger *RS=NULL) const = 0;
/// emitProlog/emitEpilog - These methods insert prolog and epilog code into