[PATCH] D104933: [LangRef] Clarify !associated
Evgenii Stepanov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 7 13:57:03 PDT 2021
eugenis added inline comments.
================
Comment at: llvm/docs/LangRef.rst:6842
+to more references to the metadata. If the metadata is retained while
+the function is discarded, this will trigger a linker error.
+
----------------
MaskRay wrote:
> eugenis wrote:
> > It sounds like the linker error is only a symptom, and the real reason is that !associated as well as SHF_LINK_ORDER can not express many-to-one relationship, right? Because ideally we would want to keep metadata alive as long as any inline location is alive, too.
> > the real reason is that !associated as well as SHF_LINK_ORDER can not express many-to-one relationship, right?
>
> Exactly. Shall I rephrase this to make it clearer? (Do you a particular suggestion?)
Yeah, it would be good to expand this with the underlying reason for the limitation.
Something about how !associated metadata can not be used to describe multiple users of the variable because ELF only allows one linked section per section.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104933/new/
https://reviews.llvm.org/D104933
More information about the llvm-commits
mailing list