Skip to content

Commit 2f1e58c

Browse files
kazutakahiratavinay-deshmukh
authored andcommitted
[llvm] Remove redundant declarations (NFC) (llvm#166713)
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 c967970 commit 2f1e58c

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

llvm/lib/CodeGen/SafeStack.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,6 @@ class SafeStack {
196196
bool run();
197197
};
198198

199-
constexpr Align SafeStack::StackAlignment;
200-
201199
uint64_t SafeStack::getStaticAllocaAllocationSize(const AllocaInst* AI) {
202200
uint64_t Size = DL.getTypeAllocSize(AI->getAllocatedType());
203201
if (AI->isArrayAllocation()) {

llvm/lib/Target/BPF/BPFAbstractMemberAccess.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@
9797
#define DEBUG_TYPE "bpf-abstract-member-access"
9898

9999
namespace llvm {
100-
constexpr StringRef BPFCoreSharedInfo::AmaAttr;
101100
uint32_t BPFCoreSharedInfo::SeqNum;
102101

103102
Instruction *BPFCoreSharedInfo::insertPassThrough(Module *M, BasicBlock *BB,

llvm/lib/Target/BPF/BPFPreserveDIType.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@
2727

2828
#define DEBUG_TYPE "bpf-preserve-di-type"
2929

30-
namespace llvm {
31-
constexpr StringRef BPFCoreSharedInfo::TypeIdAttr;
32-
} // namespace llvm
33-
3430
using namespace llvm;
3531

3632
namespace {

0 commit comments

Comments
 (0)