Don't emit anything into the debug_ranges section if we aren't emitting
authorEric Christopher <echristo@gmail.com>
Thu, 27 Feb 2014 07:44:45 +0000 (07:44 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 27 Feb 2014 07:44:45 +0000 (07:44 +0000)
commit1348dc097d65dd3eb59046c933496cc7bc72e556
tree03e4ad9bbdbca91728058ecb40e6a00ad85f7256
parent1c30a35b0f3561c9a81057a2305a6d7155413f10
Don't emit anything into the debug_ranges section if we aren't emitting
any ranges - this includes CU ranges where we were previously emitting an
end list marker even if we didn't have a list.

Testcase includes a test for line table only code emission as the problem
was noticed while writing this test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202357 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
test/DebugInfo/cu-line-tables.ll [new file with mode: 0644]