summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-08-25 22:56:30 +0000
committerJim Laskey <jlaskey@mac.com>2006-08-25 22:56:30 +0000
commit08ede262a744f99429658fadb43662441bdcb42d (patch)
tree9a492e3fd8adc8231b7a4d7229fb2f5cb00dc4c1 /include
parent203572552d9f91455972ba322a4348e3d1a67c9c (diff)
downloadllvm-08ede262a744f99429658fadb43662441bdcb42d.tar.gz
llvm-08ede262a744f99429658fadb43662441bdcb42d.tar.bz2
llvm-08ede262a744f99429658fadb43662441bdcb42d.tar.xz
Tidy up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29888 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineFrameInfo.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineFrameInfo.h b/include/llvm/CodeGen/MachineFrameInfo.h
index 40ebcd3c31..be6f1b9c42 100644
--- a/include/llvm/CodeGen/MachineFrameInfo.h
+++ b/include/llvm/CodeGen/MachineFrameInfo.h
@@ -134,7 +134,7 @@ class MachineFrameInfo {
unsigned MaxCallFrameSize;
/// CSInfo - The prolog/epilog code inserter fills in this vector with each
- /// callee saved register saved in the frame. Beyond it's use by the prolog/
+ /// callee saved register saved in the frame. Beyond its use by the prolog/
/// epilog code inserter, this data used for debug info and exception
/// handling.
std::vector<CalleeSavedInfo> CSInfo;
@@ -273,7 +273,15 @@ public:
/// getCalleeSavedInfo - Returns a reference to call saved info vector for the
/// current function.
- std::vector<CalleeSavedInfo> &getCalleeSavedInfo() { return CSInfo; }
+ const std::vector<CalleeSavedInfo> &getCalleeSavedInfo() const {
+ return CSInfo;
+ }
+
+ /// setCalleeSavedInfo - Used by prolog/epilog inserter to set the function's
+ /// callee saved information.
+ void setCalleeSavedInfo(const std::vector<CalleeSavedInfo> &CSI) {
+ CSInfo = CSI;
+ }
/// getMachineDebugInfo - Used by a prologue/epilogue emitter (MRegisterInfo)
/// to provide frame layout information.