summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineFrameInfo.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-10-17 08:57:09 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-10-17 08:57:09 +0000
commita8e65426107be9c04e09ba29b3d7b54e168236d6 (patch)
treeb87a9eed8c6687d05ad8df704988fd647c41c5b7 /include/llvm/CodeGen/MachineFrameInfo.h
parent985577ec132a1dcfb057f157fb52b31e82544b16 (diff)
downloadllvm-a8e65426107be9c04e09ba29b3d7b54e168236d6.tar.gz
llvm-a8e65426107be9c04e09ba29b3d7b54e168236d6.tar.bz2
llvm-a8e65426107be9c04e09ba29b3d7b54e168236d6.tar.xz
Re-arrange some fields.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineFrameInfo.h')
-rw-r--r--include/llvm/CodeGen/MachineFrameInfo.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/MachineFrameInfo.h b/include/llvm/CodeGen/MachineFrameInfo.h
index b5479ba09f..99a4c3d07d 100644
--- a/include/llvm/CodeGen/MachineFrameInfo.h
+++ b/include/llvm/CodeGen/MachineFrameInfo.h
@@ -86,6 +86,10 @@ class MachineFrameInfo {
// StackObject - Represent a single object allocated on the stack.
struct StackObject {
+ // SPOffset - The offset of this object from the stack pointer on entry to
+ // the function. This field has no meaning for a variable sized element.
+ int64_t SPOffset;
+
// The size of this object on the stack. 0 means a variable sized object,
// ~0ULL means a dead object.
uint64_t Size;
@@ -98,12 +102,8 @@ class MachineFrameInfo {
// default, fixed objects are immutable unless marked otherwise.
bool isImmutable;
- // SPOffset - The offset of this object from the stack pointer on entry to
- // the function. This field has no meaning for a variable sized element.
- int64_t SPOffset;
-
StackObject(uint64_t Sz, unsigned Al, int64_t SP = 0, bool IM = false)
- : Size(Sz), Alignment(Al), isImmutable(IM), SPOffset(SP) {}
+ : SPOffset(SP), Size(Sz), Alignment(Al), isImmutable(IM) {}
};
/// Objects - The list of stack objects allocated...