[PATCH] D104933: [LangRef] Clarify !associated

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 2 15:20:19 PDT 2021


MaskRay 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.
+
----------------
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?)


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