summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-04-24 19:55:34 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-04-24 19:55:34 +0000
commita076199e714c201ddc38f9a0c110adcb4086e3f4 (patch)
treede58267246eeb5211aceb34e7584876133d6d91d /llvm
parent5c54ecc9afabce83c52788d410d1927fd8a700ac (diff)
downloadbcm5719-llvm-a076199e714c201ddc38f9a0c110adcb4086e3f4.tar.gz
bcm5719-llvm-a076199e714c201ddc38f9a0c110adcb4086e3f4.zip
Simplify the logic. Noticed by aKor.
llvm-svn: 130116
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
index d3a4ec592b1..70c0c8a82eb 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
@@ -128,8 +128,7 @@ void DwarfCFIException::BeginFunction(const MachineFunction *MF) {
void DwarfCFIException::EndFunction() {
if (!shouldEmitMoves && !shouldEmitTable) return;
- if (shouldEmitMoves || shouldEmitTable)
- Asm->OutStreamer.EmitCFIEndProc();
+ Asm->OutStreamer.EmitCFIEndProc();
Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("eh_func_end",
Asm->getFunctionNumber()));
OpenPOWER on IntegriCloud