1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

[CodeGen] Don't emit a random reference to the personality function

This should fix issues we've been seeing with Darwin.

llvm-svn: 240036
This commit is contained in:
David Majnemer 2015-06-18 18:31:46 +00:00
parent 314cd16f5d
commit 2fcb4d8322
2 changed files with 2 additions and 4 deletions

View File

@ -548,10 +548,6 @@ void AsmPrinter::EmitFunctionHeader() {
if (F->hasPrefixData())
EmitGlobalConstant(F->getPrefixData());
// Emit the personality function.
if (F->hasPersonalityFn())
EmitGlobalConstant(F->getPersonalityFn());
// Emit the CurrentFnSym. This is a virtual function to allow targets to
// do their wild and crazy things as required.
EmitFunctionEntryLabel();

View File

@ -41,8 +41,10 @@ declare void @__cxa_end_catch()
declare i32 @__gxx_personality_v0(...)
; X64-NOT: .quad ___gxx_personality_v0
; X64: .cfi_personality 155, ___gxx_personality_v0
; X32-NOT: .long ___gxx_personality_v0
; X32: .cfi_personality 155, L___gxx_personality_v0$non_lazy_ptr
; X32: .section __IMPORT,__pointers,non_lazy_symbol_pointers