[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineFrameInfo.h

Jim Laskey jlaskey at apple.com
Fri Aug 25 15:56:45 PDT 2006



Changes in directory llvm/include/llvm/CodeGen:

MachineFrameInfo.h updated: 1.19 -> 1.20
---
Log message:

Tidy up.


---
Diffs of the changes:  (+10 -2)

 MachineFrameInfo.h |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)


Index: llvm/include/llvm/CodeGen/MachineFrameInfo.h
diff -u llvm/include/llvm/CodeGen/MachineFrameInfo.h:1.19 llvm/include/llvm/CodeGen/MachineFrameInfo.h:1.20
--- llvm/include/llvm/CodeGen/MachineFrameInfo.h:1.19	Fri Aug 25 14:45:51 2006
+++ llvm/include/llvm/CodeGen/MachineFrameInfo.h	Fri Aug 25 17:56:30 2006
@@ -134,7 +134,7 @@
   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 @@
   
   /// 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. 






More information about the llvm-commits mailing list