[clang] [FMV][AArch64] Do not emit ifunc resolver on use. (PR #97761)

Tomas Matheson via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 8 06:42:10 PDT 2024


================
@@ -4210,9 +4192,7 @@ void CodeGenModule::emitMultiVersionFunctions() {
       return cast<llvm::Function>(Func);
     };
 
-    bool HasDefaultDecl = !FD->isTargetVersionMultiVersion();
-    bool ShouldEmitResolver =
-        !getContext().getTargetInfo().getTriple().isAArch64();
+    bool ShouldEmitResolver = !getTarget().getTriple().isAArch64();
----------------
tmatheson-arm wrote:

```suggestion
    // For AArch64, a resolver is only emitted if a function marked target(default))
    // is present and defined in this TU. For other architectures it is always emitted.
    bool ShouldEmitResolver = !getTarget().getTriple().isAArch64();
```

https://github.com/llvm/llvm-project/pull/97761


More information about the cfe-commits mailing list