[PATCH] D95930: [InstrProfiling] Use self-link for counter metadata
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 3 01:10:36 PST 2021
phosek created this revision.
phosek added a reviewer: MaskRay.
Herald added subscribers: wenlei, hiraditya.
phosek requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
We cannot link to the function because if the function gets discarded,
we'll end up with and invalid link which leads to a linker error:
sh_link points to discarded section
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D95930
Files:
llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
llvm/test/Instrumentation/InstrProfiling/icall.ll
llvm/test/Instrumentation/InstrProfiling/linkage.ll
llvm/test/Transforms/PGOProfile/associated.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95930.321026.patch
Type: text/x-patch
Size: 6313 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210203/9b9faae0/attachment-0001.bin>
More information about the llvm-commits
mailing list