[lld] [llvm] [lld][AArch64][Build Attributes] Add support for converting AArch64 Build Attributes to GNU Properties (PR #131990)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 15 09:36:23 PDT 2025


================
@@ -32,14 +32,21 @@ struct BuildAttributeItem {
   unsigned Tag;
   unsigned IntValue;
   std::string StringValue;
+  BuildAttributeItem() {};
   BuildAttributeItem(Types Ty, unsigned Tg, unsigned IV, std::string SV)
       : Type(Ty), Tag(Tg), IntValue(IV), StringValue(std::move(SV)) {}
 };
+
 struct BuildAttributeSubSection {
   StringRef Name;
   unsigned IsOptional;
   unsigned ParameterType;
   SmallVector<BuildAttributeItem, 64> Content;
+  BuildAttributeSubSection() {};
----------------
MaskRay wrote:

extra `;`

Why new contructors here? How about just use this struct as an aggregate?

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


More information about the llvm-commits mailing list