summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2012-01-14 17:16:48 +0000
committerDuncan Sands <baldrick@free.fr>2012-01-14 17:16:48 +0000
commitc464e998e6db00e72c65f9ae10e4a40bf34ceb83 (patch)
tree8b198a04db106aa3297e54df85ddf50b35d77b76 /lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
parentdd1f22f25d8496b10cfddedb63d674dd39897bb0 (diff)
downloadllvm-c464e998e6db00e72c65f9ae10e4a40bf34ceb83.tar.gz
llvm-c464e998e6db00e72c65f9ae10e4a40bf34ceb83.tar.bz2
llvm-c464e998e6db00e72c65f9ae10e4a40bf34ceb83.tar.xz
Speculatively revert commit 148175 (rafael), to see if this fixes
non-determinism in the 32 bit dragonegg buildbot. Original commit message: Only emit the Leh_func_endN symbol when needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfCFIException.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfCFIException.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp b/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
index d975f1f97b..8ed4f4c43a 100644
--- a/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
@@ -142,14 +142,12 @@ void DwarfCFIException::EndFunction() {
Asm->OutStreamer.EmitCFIEndProc();
- if (!shouldEmitPersonality)
- return;
-
Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("eh_func_end",
Asm->getFunctionNumber()));
// Map all labels and get rid of any dead landing pads.
MMI->TidyLandingPads();
- EmitExceptionTable();
+ if (shouldEmitPersonality)
+ EmitExceptionTable();
}