[llvm] [MC][AArch64][ARM][X86] Push target-dependent assembler flags into targets (PR #139844)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat May 17 10:58:19 PDT 2025


================
@@ -32,7 +32,7 @@ class string:
 )
 
 ASM_FUNCTION_ARM_RE = re.compile(
-    r"^(?P<func>[0-9a-zA-Z_$]+):\n"  # f: (name of function)
+    r'^(?P<func>[0-9a-zA-Z_$]+):[ \t]*@+[ \t]*@"?(?P=func)"?\n'  # f: (name of function)
----------------
MaskRay wrote:

LGTM. Seems that other targets already check the comment that contains the function name

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


More information about the llvm-commits mailing list