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

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


Changes in directory llvm/lib/Support:

ToolRunner.cpp updated: 1.7 -> 1.8

---
Log message:

Fix PR #47


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

Index: llvm/lib/Support/ToolRunner.cpp
diff -u llvm/lib/Support/ToolRunner.cpp:1.7 llvm/lib/Support/ToolRunner.cpp:1.8
--- llvm/lib/Support/ToolRunner.cpp:1.7	Sat Oct 18 16:54:47 2003
+++ llvm/lib/Support/ToolRunner.cpp	Sat Oct 18 21:14:58 2003
@@ -50,7 +50,7 @@
 
   std::cout << "<lli>" << std::flush;
   DEBUG(std::cerr << "\nAbout to run:\n\t";
-        for (unsigned i=0, e = LLIArgs.size(); i != e; ++i)
+        for (unsigned i=0, e = LLIArgs.size()-1; i != e; ++i)
           std::cerr << " " << LLIArgs[i];
         std::cerr << "\n";
         );
@@ -174,7 +174,7 @@
 
   std::cout << "<jit>" << std::flush;
   DEBUG(std::cerr << "\nAbout to run:\n\t";
-        for (unsigned i=0, e = JITArgs.size(); i != e; ++i)
+        for (unsigned i=0, e = JITArgs.size()-1; i != e; ++i)
           std::cerr << " " << JITArgs[i];
         std::cerr << "\n";
         );
@@ -309,7 +309,7 @@
   // Now that we have a binary, run it!
   std::cout << "<program>" << std::flush;
   DEBUG(std::cerr << "\nAbout to run:\n\t";
-        for (unsigned i=0, e = ProgramArgs.size(); i != e; ++i)
+        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