aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-31 22:03:47 +0000
committerChris Lattner <sabre@nondot.org>2009-07-31 22:03:47 +0000
commit81c9a069377e9474d010f04eebe8325fd11429e3 (patch)
tree7e3a09138b4454bf09638336881f95d6e853156b
parentbef8768bd0576eec0470a80e3039cd5d1fd50c6b (diff)
downloadexternal_llvm-81c9a069377e9474d010f04eebe8325fd11429e3.zip
external_llvm-81c9a069377e9474d010f04eebe8325fd11429e3.tar.gz
external_llvm-81c9a069377e9474d010f04eebe8325fd11429e3.tar.bz2
rearrange a conditional. Even if this weren't #if 0'd out, this would
have no functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77741 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfException.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp
index a05bbb2..0c710fc 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);