summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandAlias.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-09-19 21:56:59 +0000
committerZachary Turner <zturner@google.com>2016-09-19 21:56:59 +0000
commit5c725f3a06b7f4236b3d98c14f1109a5852ed6ef (patch)
treed0c26cc2e45dbc6b5afc7d364ce058927ce61e3f /lldb/source/Interpreter/CommandAlias.cpp
parentbf9a7c43b0c74a161c0a73164e59cc4785bb3085 (diff)
downloadbcm5719-llvm-5c725f3a06b7f4236b3d98c14f1109a5852ed6ef.tar.gz
bcm5719-llvm-5c725f3a06b7f4236b3d98c14f1109a5852ed6ef.zip
Convert 3 more functions to use a StringRef.
This converts Args::Unshift, Args::AddOrReplaceEnvironmentVariable, and Args::ContainsEnvironmentVariable to use StringRefs. The code is also simplified somewhat as a result. llvm-svn: 281942
Diffstat (limited to 'lldb/source/Interpreter/CommandAlias.cpp')
-rw-r--r--lldb/source/Interpreter/CommandAlias.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandAlias.cpp b/lldb/source/Interpreter/CommandAlias.cpp
index 70b5394e158..16f324ab02d 100644
--- a/lldb/source/Interpreter/CommandAlias.cpp
+++ b/lldb/source/Interpreter/CommandAlias.cpp
@@ -41,7 +41,7 @@ static bool ProcessAliasOptionsArgs(lldb::CommandObjectSP &cmd_obj_sp,
ExecutionContext exe_ctx =
cmd_obj_sp->GetCommandInterpreter().GetExecutionContext();
options->NotifyOptionParsingStarting(&exe_ctx);
- args.Unshift("dummy_arg");
+ args.Unshift(llvm::StringRef("dummy_arg"));
args.ParseAliasOptions(*options, result, option_arg_vector, options_string);
args.Shift();
if (result.Succeeded())
OpenPOWER on IntegriCloud