diff options
| author | Brian Gaeke <gaeke@uiuc.edu> | 2004-05-04 22:02:41 +0000 |
|---|---|---|
| committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-05-04 22:02:41 +0000 |
| commit | 706bd5bf2bcb1eda2423746b046620bf56222189 (patch) | |
| tree | 6c8f830478fa44c81abbee81fdda45896fb91380 /llvm | |
| parent | 987ad1945d4e5073b7053f738faa2b3c64c86097 (diff) | |
| download | bcm5719-llvm-706bd5bf2bcb1eda2423746b046620bf56222189.tar.gz bcm5719-llvm-706bd5bf2bcb1eda2423746b046620bf56222189.zip | |
Apply simplification suggested by Chris: why assign() when operator = will do?
llvm-svn: 13364
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Support/ToolRunner.h | 4 | ||||
| -rw-r--r-- | llvm/lib/Support/ToolRunner.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/Support/ToolRunner.h b/llvm/include/llvm/Support/ToolRunner.h index 36cb976e881..9d1755a2982 100644 --- a/llvm/include/llvm/Support/ToolRunner.h +++ b/llvm/include/llvm/Support/ToolRunner.h @@ -124,7 +124,7 @@ public: 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 @@ public: 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; } diff --git a/llvm/lib/Support/ToolRunner.cpp b/llvm/lib/Support/ToolRunner.cpp index e7f7d219d28..a28527a1c27 100644 --- a/llvm/lib/Support/ToolRunner.cpp +++ b/llvm/lib/Support/ToolRunner.cpp @@ -59,7 +59,7 @@ namespace { 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 @@ namespace { 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, |

