================ @@ -105,27 +107,55 @@ class MCELFStreamer : public MCObjectStreamer { unsigned Tag; unsigned IntValue; std::string StringValue; + AttributeItem(Types Ty, unsigned Tg, unsigned IV, std::string SV) + : Type(Ty), Tag(Tg), IntValue(IV), StringValue(SV) {} + }; + + /// ELF object attributes subsection support + struct AttributeSubSection { + bool IsActive; // Indicates whether the section is the active section, + // required for assembly parsing + // [<uint32: subsection-length> NTBS: vendor-name <bytes: vendor-data>]* + StringRef VendorName; + // <uint8: optional> <uint8: parameter type> <attribute>* + ARMBuildAttrs::SubsectionOptional IsOptional; ---------------- ostannard wrote:
AArch64-specific data types shouldn't be used in target-independent headers. Either `SubsectionOptional` and `SubsectionType` should be moved to a target-independent header, or the whole `AttributeSubSection` type should be moved down to an AArch64 file. https://github.com/llvm/llvm-project/pull/118771 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits