Skip to content

Commit 7db6344

Browse files
[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.
1 parent fe01594 commit 7db6344

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -745,11 +745,6 @@ void AppleAccelTableStaticTypeData::emit(AsmPrinter *Asm) const {
745745
Asm->emitInt32(QualifiedNameHash);
746746
}
747747

748-
constexpr AppleAccelTableData::Atom AppleAccelTableTypeData::Atoms[];
749-
constexpr AppleAccelTableData::Atom AppleAccelTableOffsetData::Atoms[];
750-
constexpr AppleAccelTableData::Atom AppleAccelTableStaticOffsetData::Atoms[];
751-
constexpr AppleAccelTableData::Atom AppleAccelTableStaticTypeData::Atoms[];
752-
753748
#ifndef NDEBUG
754749
void AppleAccelTableWriter::Header::print(raw_ostream &OS) const {
755750
OS << "Magic: " << format("0x%x", Magic) << "\n"

0 commit comments

Comments
 (0)