Store the LocationKind of an entry value buffer independently from the main LocationK...
authorAdrian Prantl <aprantl@apple.com>
Thu, 11 Feb 2021 23:38:49 +0000 (15:38 -0800)
committerAdrian Prantl <aprantl@apple.com>
Sat, 13 Feb 2021 00:59:39 +0000 (16:59 -0800)
commit982b891905349e9d6b82f8d89d325b6f2e838435
treed06e4ee8aa3f73a6d79c0a7ecf5b3e20d7f3f774
parentafd8bd601eaf268357e2cc0cf4c0382732fcf923
Store the LocationKind of an entry value buffer independently from the main LocationKind (NFC)

This patch hides the logic for setting the location kind of an entry
value inside the begin/finalize/cancel functions. This way we get rid
the strange workaround that is currently in setLocation().

In the future, this will allow us to set the location kind of the
entry value independently from the location kind of the main
expression.

Differential Revision: https://reviews.llvm.org/D96554
llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h