[clang] [clang][fmv] Drop .ifunc from target_version's entrypoint's mangling (PR #81194)

via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 8 15:35:09 PST 2024


================
@@ -4393,7 +4394,7 @@ llvm::Constant *CodeGenModule::GetOrCreateMultiVersionResolver(GlobalDecl GD) {
   // a separate resolver).
   std::string ResolverName = MangledName;
   if (getTarget().supportsIFunc()) {
-    if (!FD->isTargetClonesMultiVersion())
+    if (!FD->isTargetClonesMultiVersion() && !FD->isTargetVersionMultiVersion())
----------------
elizabethandrews wrote:

I didn't realize there were multiple attributes still using this mangling. A switch would make this code better but I'm ok either way. 

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


More information about the cfe-commits mailing list