[mono/llvm] f41e74e4: Fix thumb unwind info.

"Zoltan Varga ([email protected])" <[email protected]> Sun, 17 Nov 2013 07:54:51 +0000
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <00000142650e14e5-22df6c5d-fa67-4354-8dff-8b4a6643d859-000000@email.amazonses.com>
   Branch: refs/heads/mono4
     Home: https://github.com/mono/llvm
  Compare: https://github.com/mono/llvm/compare/70f31ddf5041...f41e74e4a298

   Commit: f41e74e4a29808a386d87a74d7e8408d43bef17a
   Author: Zoltan Varga <[email protected]> (vargaz)
     Date: 2013-11-17 07:53:37 GMT
      URL: https://github.com/mono/llvm/commit/f41e74e4a29808a386d87a74d7e8408d43bef17a

Fix thumb unwind info.

Changed paths:
  M lib/Target/ARM/Thumb1FrameLowering.cpp

Modified: lib/Target/ARM/Thumb1FrameLowering.cpp
===================================================================
@@ -95,7 +95,7 @@ bool Thumb1FrameLowering::hasReservedCallFrame(const MachineFunction &MF) const{
     FrameLabel = MMI.getContext().CreateTempSymbol();
     BuildMI(MBB, MBBI, dl, TII.get(ARM::PROLOG_LABEL)).addSym(FrameLabel);
   }
-  MMI.addFrameInst(MCCFIInstruction::createDefCfaOffset(FrameLabel, CfaOffset));
+  MMI.addFrameInst(MCCFIInstruction::createDefCfaOffset(FrameLabel, -CfaOffset));
 }
 
 static void
@@ -109,7 +109,7 @@ bool Thumb1FrameLowering::hasReservedCallFrame(const MachineFunction &MF) const{
   BuildMI(MBB, MBBI, dl, TII.get(ARM::PROLOG_LABEL)).addSym(FrameLabel);
 
   unsigned DwarfReg = MRI->getDwarfRegNum(CfaReg, true);
-  MMI.addFrameInst(MCCFIInstruction::createDefCfa(FrameLabel, DwarfReg, CfaOffset));
+  MMI.addFrameInst(MCCFIInstruction::createDefCfa(FrameLabel, DwarfReg, -CfaOffset));
 }
 
 static void


_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches