[llvm] [LLVM][Clang][AArch64] Implement AArch64 build attributes (PR #118771)

via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 6 05:21:22 PST 2024


================
@@ -793,20 +793,23 @@ void ARMTargetELFStreamer::switchVendor(StringRef Vendor) {
 
 void ARMTargetELFStreamer::emitAttribute(unsigned Attribute, unsigned Value) {
   getStreamer().setAttributeItem(Attribute, Value,
-                                 /* OverwriteExisting= */ true);
+                                 /* OverwriteExisting= */ true,
+                                 getStreamer().Contents);
----------------
sivan-shani wrote:

Clarification: 
The part about the mechanism m for emitting attributes refer to ELF.
Asm attributes need to be emitted in order since they are being printed directly. 

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


More information about the llvm-commits mailing list