HomePhabricator

[DebugInfo][DWARF] Emit a single location instead of a location list

Authored by Orlando on May 18 2020, 1:25 AM.

Description

[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