[llvm-commits] [llvm] r91337 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp

Mike Stump mrs at apple.com
Thu Dec 17 12:38:20 PST 2009


On Dec 14, 2009, at 1:49 PM, Bill Wendling wrote:
> Author: void
> Date: Mon Dec 14 15:49:44 2009
> New Revision: 91337
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=91337&view=rev
> Log:
> The CIE says that the LSDA point in the FDE section is an "sdata4". That's fine,
> but we need it to actually be 4-bytes in the FDE.

I think this will also need:

Index: lib/CodeGen/AsmPrinter/DwarfException.cpp
===================================================================
--- lib/CodeGen/AsmPrinter/DwarfException.cpp	(revision 91608)
+++ lib/CodeGen/AsmPrinter/DwarfException.cpp	(working copy)
@@ -289,7 +289,8 @@
     if (MMI->getPersonalities()[0] != NULL) {
       bool is4Byte = TD->getPointerSize() == sizeof(int32_t);
 
-      Asm->EmitULEB128Bytes(is4Byte ? 4 : 8);
+      // Below we choose a 4-byte encoding.
+      Asm->EmitULEB128Bytes(4);
       Asm->EOL("Augmentation size");
 
       // We force 32-bits here because we've encoded our LSDA in the CIE with

but even that didn't seem to fix all the problems...



More information about the llvm-commits mailing list