[llvm] [AArch64][Build Attributes] Improve Parsing and Formatting (PR #126530)

Oliver Stannard via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 20 05:51:08 PST 2025


================
@@ -0,0 +1,50 @@
+// RUN: llvm-mc -triple=aarch64 %s -o - | FileCheck %s --check-prefix=ASM
+// RUN: llvm-mc -triple=aarch64 -filetype=obj %s -o - | llvm-readelf --hex-dump=.ARM.attributes - | FileCheck %s --check-prefix=ELF
+
+// ASM: .aeabi_subsection	subsection_a, optional, uleb128
+// ASM: .aeabi_subsection	aeabi_subsection, optional, ntbs
----------------
ostannard wrote:

Would it help to use that mechanism, and add the comment with `addExplicitComment()` instead of a literal "//" string?

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


More information about the llvm-commits mailing list