mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
Keep track of max stack alignment as objects are added. Remove an obsolete method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27378 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
11e15b38e9
commit
208aa29feb
@ -210,16 +210,14 @@ public:
|
||||
/// 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
|
||||
|
Loading…
Reference in New Issue
Block a user