summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/Args.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Interpreter/Args.cpp')
-rw-r--r--lldb/source/Interpreter/Args.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/Args.cpp b/lldb/source/Interpreter/Args.cpp
index a23ba3094b2..07e5191f898 100644
--- a/lldb/source/Interpreter/Args.cpp
+++ b/lldb/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();
OpenPOWER on IntegriCloud