[llvm] [DWARFLinkerParallel] Add support for -odr mode. (PR #68721)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 17 05:08:17 PDT 2023
avl-llvm wrote:
> > Speaking of original example, Do I correctly understand that "DW_AT_const_value (0)" should be in both type definition copies(0x001c4090 and 0x010f623d) in currently generated DWARF?
>
> I'm not actually sure. I'm not sure if we can always compute the value reliably in every context (some parts of templates we're not allowed to instantiate only in certain contexts).
>
> If we couldn't do it in all cases, maybe we could not put the value on the declaration in all cases - and use a definition DIE to attach the value to (& not put a DW_AT_location on that definition, because it might not have storage in translation units, etc).
I see. Thank you for elaborations.
https://github.com/llvm/llvm-project/pull/68721
More information about the llvm-commits
mailing list