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

Brian Gaeke gaeke at cs.uiuc.edu
Tue May 4 17:03:02 PDT 2004


Changes in directory llvm/lib/Support:

ToolRunner.cpp updated: 1.23 -> 1.24

---
Log message:

Apply simplification suggested by Chris: why assign() when operator = will do?


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

Index: llvm/lib/Support/ToolRunner.cpp
diff -u llvm/lib/Support/ToolRunner.cpp:1.23 llvm/lib/Support/ToolRunner.cpp:1.24
--- llvm/lib/Support/ToolRunner.cpp:1.23	Tue May  4 16:09:01 2004
+++ llvm/lib/Support/ToolRunner.cpp	Tue May  4 17:02:41 2004
@@ -59,7 +59,7 @@
     LLI(const std::string &Path, const std::vector<std::string> *Args)
       : LLIPath(Path) {
       ToolArgs.clear ();
-      if (Args) { ToolArgs.assign (Args->begin (), Args->end ()); }
+      if (Args) { ToolArgs = *Args; }
     }
     
     virtual int ExecuteProgram(const std::string &Bytecode,
@@ -199,7 +199,7 @@
     JIT(const std::string &Path, const std::vector<std::string> *Args)
       : LLIPath(Path) {
       ToolArgs.clear ();
-      if (Args) { ToolArgs.assign (Args->begin (), Args->end ()); }
+      if (Args) { ToolArgs = *Args; }
     }
     
     virtual int ExecuteProgram(const std::string &Bytecode,





More information about the llvm-commits mailing list