DebugInfo: Don't include the name of the CU file in the line table file list when...
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 14 Feb 2014 01:57:59 +0000 (01:57 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 14 Feb 2014 01:57:59 +0000 (01:57 +0000)
commit177585d1d9bfb1589b5281148bd6c6e2f09f66a3
tree6bf4594e09b940425a71b70342c64590525bea7d
parent0d403d22b0a62ce5588276d042c91b840a0f7eab
DebugInfo: Don't include the name of the CU file in the line table file list when it's unneeded

Recommitting r201351 and r201355 (reverted in r201351 and r201355)

We weren't emitting the an empty (header only) line table when the line
table was empty - this made the DWARF invalid (the compile unit would
point to the zero-size debug_lines section where there should've been an
empty line table but there was nothing at all). Fix that, and as a
consequence this works around/addresses PR18809.

llvm-svn: 201380
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/MC/MCObjectStreamer.cpp
llvm/test/DebugInfo/X86/generate-odr-hash.ll
llvm/test/DebugInfo/empty.ll [new file with mode: 0644]