mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Stack objects have nonnegative indices, not just positive indices.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53418 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
358f5ac972
commit
46e7730c81
@ -55,7 +55,7 @@ public:
|
||||
///
|
||||
/// To support this, the class assigns unique integer identifiers to stack
|
||||
/// objects requested clients. These identifiers are negative integers for
|
||||
/// fixed stack objects (such as arguments passed on the stack) or positive
|
||||
/// fixed stack objects (such as arguments passed on the stack) or nonnegative
|
||||
/// for objects that may be reordered. Instructions which refer to stack
|
||||
/// objects use a special MO_FrameIndex operand to represent these frame
|
||||
/// indexes.
|
||||
@ -327,7 +327,7 @@ public:
|
||||
}
|
||||
|
||||
/// CreateStackObject - Create a new statically sized stack object, returning
|
||||
/// a postive identifier to represent it.
|
||||
/// a nonnegative identifier to represent it.
|
||||
///
|
||||
int CreateStackObject(uint64_t Size, unsigned Alignment) {
|
||||
assert(Size != 0 && "Cannot allocate zero size stack objects!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user