[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineFrameInfo.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Apr 3 14:38:52 PDT 2006
Changes in directory llvm/include/llvm/CodeGen:
MachineFrameInfo.h updated: 1.14 -> 1.15
---
Log message:
Keep track of max stack alignment as objects are added. Remove an obsolete method.
---
Diffs of the changes: (+3 -5)
MachineFrameInfo.h | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
Index: llvm/include/llvm/CodeGen/MachineFrameInfo.h
diff -u llvm/include/llvm/CodeGen/MachineFrameInfo.h:1.14 llvm/include/llvm/CodeGen/MachineFrameInfo.h:1.15
--- llvm/include/llvm/CodeGen/MachineFrameInfo.h:1.14 Sun Nov 6 11:40:18 2005
+++ llvm/include/llvm/CodeGen/MachineFrameInfo.h Mon Apr 3 16:38:39 2006
@@ -210,16 +210,14 @@
/// a postive identifier to represent it.
///
int CreateStackObject(unsigned Size, unsigned Alignment) {
+ // Keep track of the maximum alignment.
+ if (MaxAlignment < Alignment) MaxAlignment = Alignment;
+
assert(Size != 0 && "Cannot allocate zero size stack objects!");
Objects.push_back(StackObject(Size, Alignment, -1));
return Objects.size()-NumFixedObjects-1;
}
- /// CreateStackObject - Create a stack object for a value of the specified
- /// LLVM type.
- ///
- int CreateStackObject(const Type *Ty, const TargetData &TD);
-
/// CreateVariableSizedObject - Notify the MachineFrameInfo object that a
/// variable sized object has been created. This must be created whenever a
/// variable sized object is created, whether or not the index returned is
More information about the llvm-commits
mailing list