summaryrefslogtreecommitdiff
path: root/source/Interpreter/Args.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-12-18 20:12:36 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-12-18 20:12:36 +0000
commitef5d0b5e97ec8e6fa395d377b09aa7755e345b4f (patch)
tree27916256fdeeb57d10d2f3d6948be5d71a703215 /source/Interpreter/Args.cpp
parent76e0736e7fcfeb179779e49c05604464b1ccd704 (diff)
Notes
Diffstat (limited to 'source/Interpreter/Args.cpp')
-rw-r--r--source/Interpreter/Args.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/Interpreter/Args.cpp b/source/Interpreter/Args.cpp
index a23ba3094b22..07e5191f898a 100644
--- a/source/Interpreter/Args.cpp
+++ b/source/Interpreter/Args.cpp
@@ -185,6 +185,11 @@ Args::Args(llvm::StringRef command) { SetCommandString(command); }
Args::Args(const Args &rhs) { *this = rhs; }
+Args::Args(const StringList &list) : Args() {
+ for(size_t i = 0; i < list.GetSize(); ++i)
+ AppendArgument(list[i]);
+}
+
Args &Args::operator=(const Args &rhs) {
Clear();