mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-23 14:03:14 +00:00
Keep track of max stack alignment as objects are added. Remove an obsolete method.
llvm-svn: 27378
This commit is contained in:
parent
169240beb7
commit
b46d7d9fc4
@ -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…
x
Reference in New Issue
Block a user