[DebugInfo][DWARF] Emit a single location instead of a location list
authorOCHyams <orlando.hyams@sony.com>
Mon, 18 May 2020 08:25:29 +0000 (09:25 +0100)
committerOCHyams <orlando.hyams@sony.com>
Mon, 18 May 2020 08:43:32 +0000 (09:43 +0100)
commit709c52b9553f4ba83ab901a873392f8a7f2c56a5
treeefd90124aace6722b7f406805c526906c52c9e32
parent54a85240709ecbcab329fb39af8ba5d6cd565305
[DebugInfo][DWARF] Emit a single location instead of a location list

for variables in nested scopes (including inlined functions) if there is a
single location which covers the entire scope and the scope is contained in a
single block.

Based on work by @jmorse.

Reviewed By: vsk, aprantl

Differential Revision: https://reviews.llvm.org/D79571
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/test/DebugInfo/X86/single-location-inlined-param.mir [new file with mode: 0644]
llvm/test/DebugInfo/X86/single-location-interrupted-scope.mir [new file with mode: 0644]
llvm/test/DebugInfo/X86/single-location.mir [new file with mode: 0644]