[llvm-commits] [llvm] r84324 - /llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h

Evan Cheng evan.cheng at apple.com
Sat Oct 17 01:57:09 PDT 2009


Author: evancheng
Date: Sat Oct 17 03:57:09 2009
New Revision: 84324

URL: http://llvm.org/viewvc/llvm-project?rev=84324&view=rev
Log:
Re-arrange some fields.

Modified:
    llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h

Modified: llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h?rev=84324&r1=84323&r2=84324&view=diff

==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h Sat Oct 17 03:57:09 2009
@@ -86,6 +86,10 @@
 
   // 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 @@
     // 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...





More information about the llvm-commits mailing list