[llvm] [ctxprof] don't inline weak symbols after instrumentation (PR #128811)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 26 07:07:49 PST 2025
================
@@ -550,6 +550,13 @@ class GlobalValue : public Constant {
return isDiscardableIfUnused(getLinkage());
}
+ // the symbol in this module may be replaced by a prevailing copy.
+ bool mayBeReplacedByPrevailingCopy() const {
----------------
teresajohnson wrote:
Can you just use isWeakForLinker?
https://github.com/llvm/llvm-project/pull/128811
More information about the llvm-commits
mailing list