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 | 48b008db57cf1ffabf949364622c9ecfe0ec85c4 (patch) | |
tree | 2e223d2d71d0e1d6d595318b882356bc7d4f1d31 /tools | |
parent | 4a9c90446d2807ce71fc1b26cccc130e28f10c57 (diff) | |
download | external_llvm-48b008db57cf1ffabf949364622c9ecfe0ec85c4.zip external_llvm-48b008db57cf1ffabf949364622c9ecfe0ec85c4.tar.gz external_llvm-48b008db57cf1ffabf949364622c9ecfe0ec85c4.tar.bz2 |
Apply simplification suggested by Chris: why assign() when operator = will do?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13364 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bugpoint/ToolRunner.cpp | 4 | ||||
-rw-r--r-- | tools/bugpoint/ToolRunner.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp index e7f7d21..a28527a 100644 --- a/tools/bugpoint/ToolRunner.cpp +++ b/tools/bugpoint/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, diff --git a/tools/bugpoint/ToolRunner.h b/tools/bugpoint/ToolRunner.h index 36cb976..9d1755a 100644 --- a/tools/bugpoint/ToolRunner.h +++ b/tools/bugpoint/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; } |