diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-10-17 18:48:57 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-10-17 18:48:57 +0000 |
commit | a9f0cc4ced61589c5a045016dc51061af54bac20 (patch) | |
tree | 87a46351b6d22f1d76f6a976b9df353d0abe0190 /lib/CodeGen/AsmPrinter/DwarfWriter.cpp | |
parent | c4d1021ead43cfa7da08a8f7ddc9a059a8ba14c5 (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.cpp | 5 |
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 |