[llvm-commits] CVS: llvm/include/llvm/Support/ToolRunner.h

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


Changes in directory llvm/include/llvm/Support:

ToolRunner.h updated: 1.12 -> 1.13

---
Log message:

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


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

Index: llvm/include/llvm/Support/ToolRunner.h
diff -u llvm/include/llvm/Support/ToolRunner.h:1.12 llvm/include/llvm/Support/ToolRunner.h:1.13
--- llvm/include/llvm/Support/ToolRunner.h:1.12	Tue May  4 16:09:01 2004
+++ llvm/include/llvm/Support/ToolRunner.h	Tue May  4 17:02:41 2004
@@ -124,7 +124,7 @@
   CBE(const std::string &llcPath, GCC *Gcc,
       const std::vector<std::string> *Args) : LLCPath(llcPath), gcc(Gcc) {
     ToolArgs.clear ();
-    if (Args) { ToolArgs.assign (Args->begin (), Args->end ()); }
+    if (Args) { ToolArgs = *Args; }
   }
   ~CBE() { delete gcc; }
 
@@ -160,7 +160,7 @@
   LLC(const std::string &llcPath, GCC *Gcc,
     const std::vector<std::string> *Args) : LLCPath(llcPath), gcc(Gcc) {
     ToolArgs.clear ();
-    if (Args) { ToolArgs.assign (Args->begin (), Args->end ()); }
+    if (Args) { ToolArgs = *Args; }
   }
   ~LLC() { delete gcc; }
 





More information about the llvm-commits mailing list