[llvm] r294500 - [DebugInfo] Rename EmitDebugValue to EmitDebugThreadLocal (NFC)

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 27 16:04:20 PST 2018


(+Adrian and Paul in case they have any particular thoughts/context here)

Honestly I have no state here, two years later. Looking at the code, seems
DwarfCompileUnit::addExpr is only used for TLS, but
DwarfCompileUnit::addAddressExpr (the other use of DIEExpr) is used for
PCOffset, which is created in
DebugHandlerBase::getFunctionLocalOffsetAfterInsn - which doesn't have
anything to do with thread locals. So, sure, guess it could be renamed back?

On Wed, Nov 21, 2018 at 1:55 PM Simon Atanasyan <simon at atanasyan.com> wrote:

> Hi David,
>
> Commit message for the r294500 states that "As pointed out by David
> Blaikie in the post commit review of r292624, EmitDebugValue should be
> called EmitDebugThreadLocal".
>
> After that commit the `DIEExpr::EmitValue` always calls the
> `EmitDebugThreadLocal` for all architectures. Is it true that _any_
> DIE expression is related to thread local storage on _all_
> architectures?
>
> Regards,
> Simon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181127/e1be687f/attachment.html>


More information about the llvm-commits mailing list