mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
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
This commit is contained in:
parent
4a9c90446d
commit
48b008db57
@ -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; }
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user