diff options
| author | Zachary Turner <zturner@google.com> | 2016-09-19 21:56:59 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2016-09-19 21:56:59 +0000 |
| commit | 5c725f3a06b7f4236b3d98c14f1109a5852ed6ef (patch) | |
| tree | d0c26cc2e45dbc6b5afc7d364ce058927ce61e3f /lldb/source/Interpreter/CommandAlias.cpp | |
| parent | bf9a7c43b0c74a161c0a73164e59cc4785bb3085 (diff) | |
| download | bcm5719-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.cpp | 2 |
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()) |

