[llvm-commits] [llvm] r77741 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp
Chris Lattner
sabre at nondot.org
Fri Jul 31 15:03:47 PDT 2009
Author: lattner
Date: Fri Jul 31 17:03:47 2009
New Revision: 77741
URL: http://llvm.org/viewvc/llvm-project?rev=77741&view=rev
Log:
rearrange a conditional. Even if this weren't #if 0'd out, this would
have no functionality change.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp?rev=77741&r1=77740&r2=77741&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp Fri Jul 31 17:03:47 2009
@@ -556,16 +556,17 @@
#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);
More information about the llvm-commits
mailing list