[clang] [FMV][AArch64] Do not emit ifunc resolver on use. (PR #97761)
Alexandros Lamprineas via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 8 10:42:23 PDT 2024
================
@@ -4224,10 +4204,8 @@ void CodeGenModule::emitMultiVersionFunctions() {
llvm::Function *Func = createFunction(CurFD);
Options.emplace_back(Func, TA->getArchitecture(), Feats);
} else if (const auto *TVA = CurFD->getAttr<TargetVersionAttr>()) {
- bool HasDefaultDef = TVA->isDefaultVersion() &&
- CurFD->doesThisDeclarationHaveABody();
- HasDefaultDecl |= TVA->isDefaultVersion();
- ShouldEmitResolver |= (CurFD->isUsed() || HasDefaultDef);
+ ShouldEmitResolver |= (TVA->isDefaultVersion() &&
+ CurFD->doesThisDeclarationHaveABody());
----------------
labrinea wrote:
done
https://github.com/llvm/llvm-project/pull/97761
More information about the cfe-commits
mailing list