[DebugInfo] Dwarfv5: Avoid unnecessary base_address specifiers in rnglists
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 18 Jul 2018 18:04:42 +0000 (18:04 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 18 Jul 2018 18:04:42 +0000 (18:04 +0000)
commitd66140514def3436b50a292603e574917d2676d6
treead93f811626620b74b9d3afbaf3499baf8d7d486
parent7d60a0f118b4ad23df106c8fcf69bcb1e951c180
[DebugInfo] Dwarfv5: Avoid unnecessary base_address specifiers in rnglists

Since DWARFv5 rnglists are self descriptive and have distinct encodings
for base-relative (offset_pair) and absolute (start_length) entries,
there's no need to use a base address specifier when describing a lone
address range in a section.

Use that, and improve the test coverage a bit here to include cases like
this and others.

llvm-svn: 337411
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/test/DebugInfo/X86/range_reloc.ll
llvm/test/DebugInfo/X86/range_reloc_base.ll [new file with mode: 0644]
llvm/test/DebugInfo/X86/rnglists-nobase.ll [deleted file]