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 /include | |
| parent | a2c618a0f08a331e3f45bd5108423b084c2986ed (diff) | |
| download | external_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.h | 3 |
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 |
