[PATCH] D103717: [InstrProfiling] Make __profd_ unconditionally private for ELF

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 17 13:36:39 PDT 2021


davidxl added inline comments.


================
Comment at: llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp:933
+  // If linker GC cannot discard data variables while the text section is
+  // retained, data variables can be private. This optimization applies on ELF.
+  // On COFF, when DataReferencedByCode is false, __profd_ is never a comdat
----------------
Is the lld specific behavior, or it applies to gold and ld.bfd?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103717/new/

https://reviews.llvm.org/D103717



More information about the llvm-commits mailing list