[llvm-commits] [poolalloc] r113982 - /poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp

Will Dietz wdietz2 at illinois.edu
Wed Sep 15 10:02:01 PDT 2010


Author: wdietz2
Date: Wed Sep 15 12:02:01 2010
New Revision: 113982

URL: http://llvm.org/viewvc/llvm-project?rev=113982&view=rev
Log:
Add newlines to the DEBUG prints so the result is readable.

Modified:
    poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp

Modified: poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp?rev=113982&r1=113981&r2=113982&view=diff
==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp Wed Sep 15 12:02:01 2010
@@ -814,7 +814,7 @@
   // For indirect callees, find any callee since all DS graphs have been
   // merged.
   if (CF) {   // Direct calls are nice and simple.
-    DEBUG(errs() << "  Handling direct call: " << *TheCall);
+    DEBUG(errs() << "  Handling direct call: " << *TheCall << "\n");
 
     //
     // Do not try to add pool handles to the function if it:
@@ -839,7 +839,7 @@
     assert ((Graphs.hasDSGraph (*CF)) && "Function has no ECGraph!\n");
     CalleeGraph = Graphs.getDSGraph(*CF);
   } else {
-    DEBUG(errs() << "  Handling indirect call: " << *TheCall);
+    DEBUG(errs() << "  Handling indirect call: " << *TheCall << "\n");
     
     // Here we fill in CF with one of the possible called functions.  Because we
     // merged together all of the arguments to all of the functions in the
@@ -1087,7 +1087,7 @@
     AddPoolUse(*NewCall, Args[i], PoolUses);
 
   TheCall->replaceAllUsesWith(NewCall);
-  DEBUG(errs() << "  Result Call: " << *NewCall);
+  DEBUG(errs() << "  Result Call: " << *NewCall << "\n");
 
   if (!TheCall->getType()->isVoidTy()) {
     // If we are modifying the original function, update the DSGraph... 





More information about the llvm-commits mailing list