forked from OSchip/llvm-project
[ThinLTO] Fix -Wunused-function in NDEBUG builds after llvmorg-10-init-9933-g3d708bf5c26
This commit is contained in:
parent
67c416dc9a
commit
8bcd01f48a
|
@ -627,6 +627,7 @@ static unsigned numGlobalVarSummaries(const ModuleSummaryIndex &Index,
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
static bool
|
static bool
|
||||||
checkVariableImport(const ModuleSummaryIndex &Index,
|
checkVariableImport(const ModuleSummaryIndex &Index,
|
||||||
StringMap<FunctionImporter::ImportMapTy> &ImportLists,
|
StringMap<FunctionImporter::ImportMapTy> &ImportLists,
|
||||||
|
@ -657,6 +658,7 @@ checkVariableImport(const ModuleSummaryIndex &Index,
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/// Compute all the import and export for every module using the Index.
|
/// Compute all the import and export for every module using the Index.
|
||||||
void llvm::ComputeCrossModuleImport(
|
void llvm::ComputeCrossModuleImport(
|
||||||
|
|
Loading…
Reference in New Issue