[llvm] 5301a2f - [IR] Remove redundant declarations (NFC) (#166084)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 2 13:14:55 PST 2025
Author: Kazu Hirata
Date: 2025-11-02T13:14:52-08:00
New Revision: 5301a2f4bf7ce8a23a6f81174a071e70839c5c99
URL: https://github.com/llvm/llvm-project/commit/5301a2f4bf7ce8a23a6f81174a071e70839c5c99
DIFF: https://github.com/llvm/llvm-project/commit/5301a2f4bf7ce8a23a6f81174a071e70839c5c99.diff
LOG: [IR] Remove redundant declarations (NFC) (#166084)
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/IR/ModuleSummaryIndex.cpp
Removed:
################################################################################
diff --git a/llvm/lib/IR/ModuleSummaryIndex.cpp b/llvm/lib/IR/ModuleSummaryIndex.cpp
index 62fd62caad3d6..33947542bcf16 100644
--- a/llvm/lib/IR/ModuleSummaryIndex.cpp
+++ b/llvm/lib/IR/ModuleSummaryIndex.cpp
@@ -34,8 +34,6 @@ static cl::opt<bool> ImportConstantsWithRefs(
"import-constants-with-refs", cl::init(true), cl::Hidden,
cl::desc("Import constant global variables with references"));
-constexpr uint32_t FunctionSummary::ParamAccess::RangeWidth;
-
FunctionSummary FunctionSummary::ExternalNode =
FunctionSummary::makeDummyFunctionSummary(
SmallVector<FunctionSummary::EdgeTy, 0>());
@@ -88,8 +86,6 @@ std::pair<unsigned, unsigned> FunctionSummary::specialRefCounts() const {
return {RORefCnt, WORefCnt};
}
-constexpr uint64_t ModuleSummaryIndex::BitcodeSummaryVersion;
-
uint64_t ModuleSummaryIndex::getFlags() const {
uint64_t Flags = 0;
// Flags & 0x4 is reserved. DO NOT REUSE.
More information about the llvm-commits
mailing list