[lld] 753d4bc - [lld] Remove redundant declarations (NFC) (#166712)

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 6 06:51:53 PST 2025


Author: Kazu Hirata
Date: 2025-11-06T06:51:49-08:00
New Revision: 753d4bc57147996de81608a55907290351f6dd4b

URL: https://github.com/llvm/llvm-project/commit/753d4bc57147996de81608a55907290351f6dd4b
DIFF: https://github.com/llvm/llvm-project/commit/753d4bc57147996de81608a55907290351f6dd4b.diff

LOG: [lld] Remove redundant declarations (NFC) (#166712)

In C++17, static constexpr members are implicitly inline, so they no
longer require an out-of-line definition.

Identified with readability-redundant-declaration.

Added: 
    

Modified: 
    lld/ELF/SyntheticSections.cpp

Removed: 
    


################################################################################
diff  --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp
index a4150ebfa1653..9a70c0d19c41d 100644
--- a/lld/ELF/SyntheticSections.cpp
+++ b/lld/ELF/SyntheticSections.cpp
@@ -54,8 +54,6 @@ using llvm::support::endian::read32le;
 using llvm::support::endian::write32le;
 using llvm::support::endian::write64le;
 
-constexpr size_t MergeNoTailSection::numShards;
-
 static uint64_t readUint(Ctx &ctx, uint8_t *buf) {
   return ctx.arg.is64 ? read64(ctx, buf) : read32(ctx, buf);
 }


        


More information about the llvm-commits mailing list