1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Hide implementation details in anonymous namespaces. NFC.

This commit is contained in:
Benjamin Kramer 2019-10-24 10:43:37 +02:00
parent 5167c00f3d
commit 263418463b
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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;
@ -610,6 +611,7 @@ struct IsPrevailing {
return Prevailing->second == S;
};
};
}; // namespace
static void computeDeadSymbolsInIndex(
ModuleSummaryIndex &Index,