[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
This commit is contained in:
David Majnemer
2015-06-18 18:31:46 +00:00
parent 75a43c6c6b
commit 6d136d7300
2 changed files with 2 additions and 4 deletions
-4
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();