From 907f114dd38405bd0b5fbd384af119a2a4d0ec44 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 31 Jul 2009 22:03:47 +0000 Subject: [PATCH] rearrange a conditional. Even if this weren't #if 0'd out, this would have no functionality change. llvm-svn: 77741 --- lib/CodeGen/AsmPrinter/DwarfException.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp index a05bbb2b6f7..0c710fc8130 100644 --- a/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -556,16 +556,17 @@ void DwarfException::EmitExceptionTable() { #if 0 // FIXME: This should default to what the system wants, not just "absptr". - if (!TypeInfos.empty() || !FilterIds.empty()) { + if (TypeInfos.empty() && FilterIds.empty()) { + Asm->EmitInt8(dwarf::DW_EH_PE_omit); + Asm->EOL("TType format (DW_EH_PE_omit)"); + } else { Asm->EmitInt8(TAI->PreferredEHDataFormat()); + // FIXME: The comment here should correspond with what PreferredEHDataFormat // returned. Asm->EOL("TType format (DW_EH_PE_xxxxx)"); Asm->EmitULEB128Bytes(TypeOffset); Asm->EOL("TType base offset"); - } else { - Asm->EmitInt8(dwarf::DW_EH_PE_omit); - Asm->EOL("TType format (DW_EH_PE_omit)"); } #else Asm->EmitInt8(dwarf::DW_EH_PE_absptr);