[llvm] [Support] Remove a redundant constructor in SubsectionAndTagToTagName (NFC) (PR #164118)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 18 12:35:06 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/164118
This patch simplifies the struct by switching to C++ aggregate
initialization.
>From 479e4176c839de69d91e8ff629c324c8379018e3 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Sun, 12 Oct 2025 22:05:14 -0700
Subject: [PATCH] [Support] Remove a redundant constructor in
SubsectionAndTagToTagName (NFC)
This patch simplifies the struct by switching to C++ aggregate
initialization.
---
llvm/include/llvm/Support/ELFAttributes.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/llvm/include/llvm/Support/ELFAttributes.h b/llvm/include/llvm/Support/ELFAttributes.h
index 270246f7e6d87..5771a8445949e 100644
--- a/llvm/include/llvm/Support/ELFAttributes.h
+++ b/llvm/include/llvm/Support/ELFAttributes.h
@@ -48,8 +48,6 @@ struct SubsectionAndTagToTagName {
StringRef SubsectionName;
unsigned Tag;
StringRef TagName;
- SubsectionAndTagToTagName(StringRef SN, unsigned Tg, StringRef TN)
- : SubsectionName(SN), Tag(Tg), TagName(TN) {}
};
namespace ELFAttrs {
More information about the llvm-commits
mailing list