[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp 
    Alkis Evlogimenos 
    alkis at cs.uiuc.edu
       
    Sat Oct 23 11:27:30 PDT 2004
    
    
  
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.126 -> 1.127
---
Log message:
Dump the compiled function only when debugging output is
requested. Clean up some debugging statements.
---
Diffs of the changes:  (+3 -3)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.126 llvm-java/lib/Compiler/Compiler.cpp:1.127
--- llvm-java/lib/Compiler/Compiler.cpp:1.126	Sat Oct 23 13:22:36 2004
+++ llvm-java/lib/Compiler/Compiler.cpp	Sat Oct 23 13:27:19 2004
@@ -700,8 +700,6 @@
       while (!bbWorkList_.empty()) {
 	currentBB_ = bbWorkList_.front();
 	bbWorkList_.pop_front();
-	DEBUG(std::cerr << "compiling basic block: "
-	      << currentBB_->getName() << '\n');
 
 	BBInfoMap::iterator bbInfo = bbInfoMap_.find(currentBB_);
 	assert(bbInfo != bbInfoMap_.end() &&
@@ -743,7 +741,9 @@
 	}
       }
 
-      function->dump();
+      DEBUG(std::cerr << "Finished compilation of method: "
+            << classMethodDesc << '\n');
+      DEBUG(function->dump());
 
       return function;
     }
    
    
More information about the llvm-commits
mailing list