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:
parent
5167c00f3d
commit
263418463b
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user