From: Teresa Johnson Date: Tue, 1 Dec 2015 17:12:10 +0000 (+0000) Subject: [ThinLTO] Wrap dbgs() output in DEBUG macro X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=3c43768b6387f77f9e11450b49e5ea7b56ce1800 [ThinLTO] Wrap dbgs() output in DEBUG macro Missed in a couple places. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254422 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/FunctionImport.cpp b/lib/Transforms/IPO/FunctionImport.cpp index 345b2f540ad..10bba193927 100644 --- a/lib/Transforms/IPO/FunctionImport.cpp +++ b/lib/Transforms/IPO/FunctionImport.cpp @@ -124,15 +124,15 @@ bool FunctionImporter::importFunctions(Module &M) { auto *Summary = Info->functionSummary(); if (!Summary) { // FIXME: in case we are lazyloading summaries, we can do it now. - dbgs() << "Missing summary for " << CalledFunctionName - << ", error at import?\n"; + DEBUG(dbgs() << "Missing summary for " << CalledFunctionName + << ", error at import?\n"); llvm_unreachable("Missing summary"); } if (Summary->instCount() > ImportInstrLimit) { - dbgs() << "Skip import of " << CalledFunctionName << " with " - << Summary->instCount() << " instructions (limit " - << ImportInstrLimit << ")\n"; + DEBUG(dbgs() << "Skip import of " << CalledFunctionName << " with " + << Summary->instCount() << " instructions (limit " + << ImportInstrLimit << ")\n"); continue; }