[llvm] 7db6344 - [CodeGen] Remove redundant declarations (NFC) (#166105)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 2 22:42:43 PST 2025
Author: Kazu Hirata
Date: 2025-11-02T22:42:40-08:00
New Revision: 7db63441703b60324c697b10f6607cc9e611b91c
URL: https://github.com/llvm/llvm-project/commit/7db63441703b60324c697b10f6607cc9e611b91c
DIFF: https://github.com/llvm/llvm-project/commit/7db63441703b60324c697b10f6607cc9e611b91c.diff
LOG: [CodeGen] Remove redundant declarations (NFC) (#166105)
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:
llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp b/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
index e5c85d588b45e..1ea30d8ab3c2b 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
@@ -745,11 +745,6 @@ void AppleAccelTableStaticTypeData::emit(AsmPrinter *Asm) const {
Asm->emitInt32(QualifiedNameHash);
}
-constexpr AppleAccelTableData::Atom AppleAccelTableTypeData::Atoms[];
-constexpr AppleAccelTableData::Atom AppleAccelTableOffsetData::Atoms[];
-constexpr AppleAccelTableData::Atom AppleAccelTableStaticOffsetData::Atoms[];
-constexpr AppleAccelTableData::Atom AppleAccelTableStaticTypeData::Atoms[];
-
#ifndef NDEBUG
void AppleAccelTableWriter::Header::print(raw_ostream &OS) const {
OS << "Magic: " << format("0x%x", Magic) << "\n"
More information about the llvm-commits
mailing list