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.

llvm-svn: 50850
This commit is contained in:
Duncan Sands 2008-05-08 12:33:11 +00:00
parent 15cb669039
commit 9897eee483
1 changed files with 2 additions and 1 deletions
llvm/lib/CodeGen

View File

@ -2856,7 +2856,8 @@ private:
O << TAI->getPersonalityPrefix();
Asm->EmitExternalGlobal((const GlobalVariable *)(Personality));
O << TAI->getPersonalitySuffix();
O << "-" << TAI->getPCSymbol();
if (strcmp(TAI->getPersonalitySuffix(), "+4@GOTPCREL"))
O << "-" << TAI->getPCSymbol();
Asm->EOL("Personality");
Asm->EmitInt8(DW_EH_PE_pcrel | DW_EH_PE_sdata4);