From 8da123e7ca0d5c9c6b147a536425778e95ac80e5 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 3 Nov 2025 08:11:59 -0800 Subject: [PATCH] [ObjectYAML] Remove redundant declarations (NFC) In C++17, static constexpr members are implicitly inline, so they no longer require an out-of-line definition. Identified with readability-redundant-declaration. --- llvm/lib/ObjectYAML/ELFYAML.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/llvm/lib/ObjectYAML/ELFYAML.cpp b/llvm/lib/ObjectYAML/ELFYAML.cpp index e5e5fc20728e8..29f291614ffc6 100644 --- a/llvm/lib/ObjectYAML/ELFYAML.cpp +++ b/llvm/lib/ObjectYAML/ELFYAML.cpp @@ -37,8 +37,6 @@ unsigned Object::getMachine() const { return *Header.Machine; return llvm::ELF::EM_NONE; } - -constexpr StringRef SectionHeaderTable::TypeStr; } // namespace ELFYAML namespace yaml {