[llvm] r254422 - [ThinLTO] Wrap dbgs() output in DEBUG macro

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 1 09:12:10 PST 2015


Author: tejohnson
Date: Tue Dec  1 11:12:10 2015
New Revision: 254422

URL: http://llvm.org/viewvc/llvm-project?rev=254422&view=rev
Log:
[ThinLTO] Wrap dbgs() output in DEBUG macro

Missed in a couple places.

Modified:
    llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp

Modified: llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp?rev=254422&r1=254421&r2=254422&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp Tue Dec  1 11:12:10 2015
@@ -124,15 +124,15 @@ bool FunctionImporter::importFunctions(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;
     }
 




More information about the llvm-commits mailing list