llvm.org GIT mirror llvm / 6d136d7
[CodeGen] Don't emit a random reference to the personality function This should fix issues we've been seeing with Darwin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240036 91177308-0d34-0410-b5e6-96231b3b80d8 David Majnemer 4 years ago
2 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
547547 if (F->hasPrefixData())
548548 EmitGlobalConstant(F->getPrefixData());
549549
550 // Emit the personality function.
551 if (F->hasPersonalityFn())
552 EmitGlobalConstant(F->getPersonalityFn());
553
554550 // Emit the CurrentFnSym. This is a virtual function to allow targets to
555551 // do their wild and crazy things as required.
556552 EmitFunctionEntryLabel();
4040
4141 declare i32 @__gxx_personality_v0(...)
4242
43 ; X64-NOT: .quad ___gxx_personality_v0
4344 ; X64: .cfi_personality 155, ___gxx_personality_v0
4445
46 ; X32-NOT: .long ___gxx_personality_v0
4547 ; X32: .cfi_personality 155, L___gxx_personality_v0$non_lazy_ptr
4648
4749 ; X32: .section __IMPORT,__pointers,non_lazy_symbol_pointers