summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-05-04 22:02:41 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-05-04 22:02:41 +0000
commit48b008db57cf1ffabf949364622c9ecfe0ec85c4 (patch)
tree2e223d2d71d0e1d6d595318b882356bc7d4f1d31 /tools
parent4a9c90446d2807ce71fc1b26cccc130e28f10c57 (diff)
downloadllvm-48b008db57cf1ffabf949364622c9ecfe0ec85c4.tar.gz
llvm-48b008db57cf1ffabf949364622c9ecfe0ec85c4.tar.bz2
llvm-48b008db57cf1ffabf949364622c9ecfe0ec85c4.tar.xz
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.cpp4
-rw-r--r--tools/bugpoint/ToolRunner.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp
index e7f7d219d2..a28527a1c2 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 36cb976e88..9d1755a298 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; }