aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-10-17 18:48:57 +0000
committerBill Wendling <isanbard@gmail.com>2008-10-17 18:48:57 +0000
commita9f0cc4ced61589c5a045016dc51061af54bac20 (patch)
tree87a46351b6d22f1d76f6a976b9df353d0abe0190 /lib/CodeGen/AsmPrinter/DwarfWriter.cpp
parentc4d1021ead43cfa7da08a8f7ddc9a059a8ba14c5 (diff)
The Dwarf writer was comparing mangled and unmangled names for C++ code when we
have an unreachable block in a function. This was triggering the assert. This is a horrid hack to cover this up. Oh! for a good debug info architecture! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfWriter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfWriter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index 3cfe00e7e0..1cf75b923b 100644
--- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
@@ -2060,8 +2060,11 @@ private:
return;
}
}
-
+#if 0
+ // FIXME: This is causing an abort because C++ mangled names are compared
+ // with their unmangled counterparts. See PR2885. Don't do this assert.
assert(0 && "Couldn't find DIE for machine function!");
+#endif
}
/// EmitInitial - Emit initial Dwarf declarations. This is necessary for cc