diff options
author | Fangrui Song <maskray@google.com> | 2019-11-15 10:00:23 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-11-15 10:00:23 -0800 |
commit | 8bcd01f48ac8417a07ff941bdbfc422a55a4bc8d (patch) | |
tree | 5b319413e0c48cb06b83f7ecc9db3a513619cadd /llvm/lib/Transforms/IPO/FunctionImport.cpp | |
parent | 67c416dc9a5aeda034d46bdcb3b63fffa462d28e (diff) | |
download | bcm5719-llvm-8bcd01f48ac8417a07ff941bdbfc422a55a4bc8d.tar.gz bcm5719-llvm-8bcd01f48ac8417a07ff941bdbfc422a55a4bc8d.zip |
[ThinLTO] Fix -Wunused-function in NDEBUG builds after llvmorg-10-init-9933-g3d708bf5c26
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionImport.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/FunctionImport.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp index 6a45bda7dba..7b80eb90232 100644 --- a/llvm/lib/Transforms/IPO/FunctionImport.cpp +++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp @@ -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( |