Skip to content

Commit

Permalink
Hide implementation details in anonymous namespaces. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
d0k committed Oct 24, 2019
1 parent 13fc899 commit bfa3f0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/DebugInfo/CodeView/SymbolRecordHelpers.cpp
Expand Up @@ -14,7 +14,7 @@
using namespace llvm;
using namespace llvm::codeview;

template <typename RecordT> RecordT createRecord(const CVSymbol &sym) {
template <typename RecordT> static RecordT createRecord(const CVSymbol &sym) {
RecordT record(static_cast<SymbolRecordKind>(sym.kind()));
cantFail(SymbolDeserializer::deserializeAs<RecordT>(sym, record));
return record;
Expand Down
2 changes: 2 additions & 0 deletions llvm/lib/LTO/ThinLTOCodeGenerator.cpp
Expand Up @@ -580,6 +580,7 @@ std::unique_ptr<ModuleSummaryIndex> ThinLTOCodeGenerator::linkCombinedIndex() {
return CombinedIndex;
}

namespace {
struct IsExported {
const StringMap<FunctionImporter::ExportSetTy> &ExportLists;
const DenseSet<GlobalValue::GUID> &GUIDPreservedSymbols;
Expand Down Expand Up @@ -610,6 +611,7 @@ struct IsPrevailing {
return Prevailing->second == S;
};
};
}; // namespace

static void computeDeadSymbolsInIndex(
ModuleSummaryIndex &Index,
Expand Down

0 comments on commit bfa3f0c

Please sign in to comment.