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 | fe9e2c587d58443fb6193b6aba0c409e1f7e469f (patch) | |
tree | 0358deefa55a49c04badd065d2a0071b0af31ff7 /llvm/lib/CodeGen | |
parent | 85f48ade9ccc1ed37a4db79137131a4b62c621f4 (diff) | |
download | bcm5719-llvm-fe9e2c587d58443fb6193b6aba0c409e1f7e469f.tar.gz bcm5719-llvm-fe9e2c587d58443fb6193b6aba0c409e1f7e469f.zip |
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!
llvm-svn: 57714
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index 3cfe00e7e07..1cf75b923b3 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/llvm/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 |