[llvm-commits] CVS: llvm/lib/Support/ToolRunner.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Oct 18 21:28:01 PDT 2003


Changes in directory llvm/lib/Support:

ToolRunner.cpp updated: 1.8 -> 1.9

---
Log message:

Add debugtype, make output marginally more nice



---
Diffs of the changes:  (+4 -3)

Index: llvm/lib/Support/ToolRunner.cpp
diff -u llvm/lib/Support/ToolRunner.cpp:1.8 llvm/lib/Support/ToolRunner.cpp:1.9
--- llvm/lib/Support/ToolRunner.cpp:1.8	Sat Oct 18 21:14:58 2003
+++ llvm/lib/Support/ToolRunner.cpp	Sat Oct 18 21:27:40 2003
@@ -4,6 +4,7 @@
 //
 //===----------------------------------------------------------------------===//
 
+#define DEBUG_TYPE "toolrunner"
 #include "llvm/Support/ToolRunner.h"
 #include "Support/Debug.h"
 #include "Support/FileUtilities.h"
@@ -49,7 +50,7 @@
   LLIArgs.push_back(0);
 
   std::cout << "<lli>" << std::flush;
-  DEBUG(std::cerr << "\nAbout to run:\n\t";
+  DEBUG(std::cerr << "\nAbout to run:\t";
         for (unsigned i=0, e = LLIArgs.size()-1; i != e; ++i)
           std::cerr << " " << LLIArgs[i];
         std::cerr << "\n";
@@ -173,7 +174,7 @@
   JITArgs.push_back(0);
 
   std::cout << "<jit>" << std::flush;
-  DEBUG(std::cerr << "\nAbout to run:\n\t";
+  DEBUG(std::cerr << "\nAbout to run:\t";
         for (unsigned i=0, e = JITArgs.size()-1; i != e; ++i)
           std::cerr << " " << JITArgs[i];
         std::cerr << "\n";
@@ -308,7 +309,7 @@
 
   // Now that we have a binary, run it!
   std::cout << "<program>" << std::flush;
-  DEBUG(std::cerr << "\nAbout to run:\n\t";
+  DEBUG(std::cerr << "\nAbout to run:\t";
         for (unsigned i=0, e = ProgramArgs.size()-1; i != e; ++i)
           std::cerr << " " << ProgramArgs[i];
         std::cerr << "\n";





More information about the llvm-commits mailing list