[ThinLTO] Fix -Wunused-function in NDEBUG builds after llvmorg-10-init-9933-g3d708bf5c26

This commit is contained in:
Fangrui Song 2019-11-15 10:00:23 -08:00
parent 67c416dc9a
commit 8bcd01f48a
1 changed files with 2 additions and 0 deletions

View File

@ -627,6 +627,7 @@ static unsigned numGlobalVarSummaries(const ModuleSummaryIndex &Index,
}
#endif
#ifndef NDEBUG
static bool
checkVariableImport(const ModuleSummaryIndex &Index,
StringMap<FunctionImporter::ImportMapTy> &ImportLists,
@ -657,6 +658,7 @@ checkVariableImport(const ModuleSummaryIndex &Index,
return true;
}
#endif
/// Compute all the import and export for every module using the Index.
void llvm::ComputeCrossModuleImport(