DWARF: Enable "ranges always" under Split DWARF by default
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 29 Mar 2023 19:57:09 +0000 (19:57 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 29 Mar 2023 21:01:38 +0000 (21:01 +0000)
commita73d354024f668b30dc828366a40c50dab8b4159
treed50164c440f863bfc6c113dba3045d913c90dee1
parent40803282b788e1c6f8e035c5359420954b275355
DWARF: Enable "ranges always" under Split DWARF by default

Given the intent of Split DWARF is to minimize .o file size it seems
like adequate signal that it's worth a minor tradeoff in .dwo size to
significantly reduce .o size (though it doesn't reduce linked executable
size - the cost is mostly in the static relocations resolved by the
linker).
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
llvm/test/DebugInfo/X86/debug_addr.ll
llvm/test/DebugInfo/X86/ranges_always_default.ll [new file with mode: 0644]