Skip to content

Commit 123c8a7

Browse files
committed
Move getResolvedLinkageName to .inc
1 parent 78ed4a6 commit 123c8a7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lld/ELF/BPSectionOrderer.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ struct BPOrdererELF : lld::BPOrderer<BPOrdererELF> {
3939
return symbols;
4040
}
4141

42-
std::optional<StringRef> static getResolvedLinkageName(llvm::StringRef name) {
43-
return {};
44-
}
45-
4642
static void
4743
getSectionHashes(const Section &sec, llvm::SmallVectorImpl<uint64_t> &hashes,
4844
const llvm::DenseMap<const void *, uint64_t> &sectionToIdx) {

lld/include/lld/Common/BPSectionOrdererBase.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ template <class D> struct BPOrderer {
6363
const DenseMap<CachedHashStringRef, DenseSet<unsigned>>
6464
&rootSymbolToSectionIdxs)
6565
-> llvm::DenseMap<const Section *, int>;
66+
67+
std::optional<StringRef> static getResolvedLinkageName(llvm::StringRef name) {
68+
return {};
69+
}
6670
};
6771
} // namespace lld
6872

0 commit comments

Comments
 (0)