[llvm] [CodeGen][ARM64EC] Mangle EH personality handler names (PR #121652)

Billy Laws via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 17 02:28:46 PST 2025


================
@@ -25,7 +26,14 @@ EHPersonality llvm::classifyEHPersonality(const Value *Pers) {
       Pers ? dyn_cast<GlobalValue>(Pers->stripPointerCasts()) : nullptr;
   if (!F || !F->getValueType() || !F->getValueType()->isFunctionTy())
     return EHPersonality::Unknown;
-  return StringSwitch<EHPersonality>(F->getName())
+
+  StringRef Name = F->getName();
+  if (Triple(F->getParent()->getTargetTriple()).isWindowsArm64EC()) {
+    // Demangle the personality name.
----------------
bylaws wrote:

addressed

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


More information about the llvm-commits mailing list