If we're only emitting line tables for a particular CU then don't add
authorEric Christopher <echristo@gmail.com>
Thu, 27 Feb 2014 01:25:00 +0000 (01:25 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 27 Feb 2014 01:25:00 +0000 (01:25 +0000)
commit14ec6808c4fc60db95a961550c9c9fb637652003
treec3ab8756456988e4c5a7df2e0b79085b954212c9
parent0181303087b3b341e32e8b9a4abd38e9af812318
If we're only emitting line tables for a particular CU then don't add
any ranges to the list of ranges for the CU as we don't want to emit
them anyway. This ensures that we will still emit ranges if we have
a compile unit compiled with only line tables and one compiled with
full debug info requested (we'll emit for the one with full debug info).

Update testcase metadata accordingly to continue emitting ranges.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202333 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfUnit.h
test/DebugInfo/X86/cu-ranges-odr.ll
test/DebugInfo/X86/cu-ranges.ll
test/DebugInfo/X86/stmt-list-multiple-compile-units.ll
test/DebugInfo/cu-ranges.ll