DebugInfo: Avoid creating unnecessary/empty line tables and remove the special case...
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 1 Apr 2014 08:07:52 +0000 (08:07 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 1 Apr 2014 08:07:52 +0000 (08:07 +0000)
commita07c1ab4e6870af37eb183c46765dd1057c00b63
tree1e66211cafb975e0b096ba1147d5cf0e2951f8c5
parent5b2de5dd3d46b54788abe8ec920561484da44f02
DebugInfo: Avoid creating unnecessary/empty line tables and remove the special case of '0' in DwarfCompileUnit::initStmtList by just always using a label difference

This moves one case of raw text checking down into the MCStreamer
interfaces in the form of a virtual function, even if we ultimately end
up consolidating on the one-or-many line tables issue one day, this is
nicer in the interim. This just generally streamlines a bunch of use
cases into a common code path.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205287 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCContext.h
include/llvm/MC/MCStreamer.h
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
lib/MC/MCAsmStreamer.cpp
lib/MC/MCDwarf.cpp
lib/MC/MCStreamer.cpp
test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll
test/CodeGen/ARM/2011-08-02-MergedGlobalDbg.ll
test/DebugInfo/X86/stmt-list-multiple-compile-units.ll
test/DebugInfo/X86/stmt-list.ll
test/MC/ELF/gen-dwarf.s