[llvm] 61e21f4 - [Support] Remove a redundant constructor in SubsectionAndTagToTagName (NFC) (#164118)

via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 18 15:41:51 PDT 2025


Author: Kazu Hirata
Date: 2025-10-18T15:41:47-07:00
New Revision: 61e21f42b04dc04e32c3bfc06c857c52c12d994a

URL: https://github.com/llvm/llvm-project/commit/61e21f42b04dc04e32c3bfc06c857c52c12d994a
DIFF: https://github.com/llvm/llvm-project/commit/61e21f42b04dc04e32c3bfc06c857c52c12d994a.diff

LOG: [Support] Remove a redundant constructor in SubsectionAndTagToTagName (NFC) (#164118)

This patch simplifies the struct by switching to C++ aggregate
initialization.

Added: 
    

Modified: 
    llvm/include/llvm/Support/ELFAttributes.h

Removed: 
    


################################################################################
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