[llvm-commits] [llvm] r50850 - /llvm/trunk/lib/CodeGen/DwarfWriter.cpp

Duncan Sands baldrick at free.fr
Thu May 8 05:33:13 PDT 2008


Author: baldrick
Date: Thu May  8 07:33:11 2008
New Revision: 50850

URL: http://llvm.org/viewvc/llvm-project?rev=50850&view=rev
Log:
Get exception handling working again on 64 bit
Darwin.  This is a hack of course, but it does
at least look at the right thing: gotpcrel means
that this is already an offset, so an explicit
offset is not needed (and wrong).  I think this
is good enough for the moment: Anton is working
on something better.

Modified:
    llvm/trunk/lib/CodeGen/DwarfWriter.cpp

Modified: llvm/trunk/lib/CodeGen/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/DwarfWriter.cpp?rev=50850&r1=50849&r2=50850&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/DwarfWriter.cpp Thu May  8 07:33:11 2008
@@ -2856,7 +2856,8 @@
       O << TAI->getPersonalityPrefix();
       Asm->EmitExternalGlobal((const GlobalVariable *)(Personality));
       O << TAI->getPersonalitySuffix();
-      O << "-" << TAI->getPCSymbol();
+      if (strcmp(TAI->getPersonalitySuffix(), "+4 at GOTPCREL"))
+        O << "-" << TAI->getPCSymbol();
       Asm->EOL("Personality");
 
       Asm->EmitInt8(DW_EH_PE_pcrel | DW_EH_PE_sdata4);





More information about the llvm-commits mailing list