[llvm] [AArch64] Mangle names of all ARM64EC functions with entry thunks (PR #80996)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 12 09:27:28 PST 2024


================
@@ -710,7 +710,7 @@ bool AArch64Arm64ECCallLowering::processFunction(
   // name (emitting the definition) can grab it from the metadata.
   //
   // FIXME: Handle functions with weak linkage?
-  if (F.hasExternalLinkage() || F.hasWeakLinkage() || F.hasLinkOnceLinkage()) {
+  if (!F.hasLocalLinkage() || F.hasAddressTaken()) {
----------------
efriedma-quic wrote:

Instead of emitting the "arm64ec_unmangled_name" metadata here, and ignoring it later, can we just skip emitting it?

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


More information about the llvm-commits mailing list