[llvm-commits] CVS: llvm/lib/Target/X86/X86RegisterInfo.cpp

Chris Lattner sabre at nondot.org
Tue Apr 24 21:30:42 PDT 2007



Changes in directory llvm/lib/Target/X86:

X86RegisterInfo.cpp updated: 1.213 -> 1.214
---
Log message:

support for >4G stack frames


---
Diffs of the changes:  (+4 -3)

 X86RegisterInfo.cpp |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/X86/X86RegisterInfo.cpp
diff -u llvm/lib/Target/X86/X86RegisterInfo.cpp:1.213 llvm/lib/Target/X86/X86RegisterInfo.cpp:1.214
--- llvm/lib/Target/X86/X86RegisterInfo.cpp:1.213	Tue Apr 24 23:25:10 2007
+++ llvm/lib/Target/X86/X86RegisterInfo.cpp	Tue Apr 24 23:30:24 2007
@@ -1036,7 +1036,7 @@
   unsigned FrameLabelId = 0;
   
   // Get the number of bytes to allocate from the FrameInfo
-  unsigned NumBytes = MFI->getStackSize();
+  uint64_t NumBytes = MFI->getStackSize();
 
   if (NumBytes) {   // adjust stack pointer: ESP -= numbytes
     if (NumBytes >= 4096 && Subtarget->isTargetCygMing()) {
@@ -1091,7 +1091,8 @@
   if (hasFP(MF)) {
     // Get the offset of the stack slot for the EBP register... which is
     // guaranteed to be the last slot by processFunctionBeforeFrameFinalized.
-    int EBPOffset = MFI->getObjectOffset(MFI->getObjectIndexBegin())+SlotSize;
+    int64_t EBPOffset =
+      MFI->getObjectOffset(MFI->getObjectIndexBegin())+SlotSize;
     // Update the frame offset adjustment.
     MFI->setOffsetAdjustment(SlotSize-NumBytes);
     
@@ -1128,7 +1129,7 @@
     // Add callee saved registers to move list.
     const std::vector<CalleeSavedInfo> &CSI = MFI->getCalleeSavedInfo();
     for (unsigned I = 0, E = CSI.size(); I != E; ++I) {
-      int Offset = MFI->getObjectOffset(CSI[I].getFrameIdx());
+      int64_t Offset = MFI->getObjectOffset(CSI[I].getFrameIdx());
       unsigned Reg = CSI[I].getReg();
       MachineLocation CSDst(MachineLocation::VirtualFP, Offset);
       MachineLocation CSSrc(Reg);






More information about the llvm-commits mailing list