Skip to content

Commit a477a4c

Browse files
committed
[NFC][DWP] Make getContributionIndex static.
1 parent 062353d commit a477a4c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

llvm/include/llvm/DWP/DWP.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ struct CompileUnitIdentifiers {
6969
Error write(MCStreamer &Out, ArrayRef<std::string> Inputs,
7070
OnCuIndexOverflow OverflowOptValue);
7171

72-
unsigned getContributionIndex(DWARFSectionKind Kind, uint32_t IndexVersion);
73-
7472
Error handleSection(
7573
const StringMap<std::pair<MCSection *, DWARFSectionKind>> &KnownSections,
7674
const MCSection *StrSection, const MCSection *StrOffsetSection,

llvm/lib/DWP/DWP.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,13 @@ static bool isSupportedSectionKind(DWARFSectionKind Kind) {
156156
return Kind != DW_SECT_EXT_unknown;
157157
}
158158

159-
namespace llvm {
160159
// Convert an internal section identifier into the index to use with
161160
// UnitIndexEntry::Contributions.
162-
unsigned getContributionIndex(DWARFSectionKind Kind, uint32_t IndexVersion) {
161+
static unsigned getContributionIndex(DWARFSectionKind Kind,
162+
uint32_t IndexVersion) {
163163
assert(serializeSectionKind(Kind, IndexVersion) >= DW_SECT_INFO);
164164
return serializeSectionKind(Kind, IndexVersion) - DW_SECT_INFO;
165165
}
166-
} // namespace llvm
167166

168167
// Convert a UnitIndexEntry::Contributions index to the corresponding on-disk
169168
// value of the section identifier.

0 commit comments

Comments
 (0)