diff options
| author | Zachary Turner <zturner@google.com> | 2016-11-17 21:15:14 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2016-11-17 21:15:14 +0000 |
| commit | 3165945a419e4882b94f73f005f9ea4d3d10a985 (patch) | |
| tree | f8ecba9330545a9f0fa01053d2d237c46d85319f /lldb/source/Target/Process.cpp | |
| parent | ca9d83475e94b3b1649f6f76b4cd6c345ea0404b (diff) | |
| download | bcm5719-llvm-3165945a419e4882b94f73f005f9ea4d3d10a985.tar.gz bcm5719-llvm-3165945a419e4882b94f73f005f9ea4d3d10a985.zip | |
Convert Platform, Process, and Connection functions to StringRef.
All tests pass on Linux and Windows.
llvm-svn: 287259
Diffstat (limited to 'lldb/source/Target/Process.cpp')
| -rw-r--r-- | lldb/source/Target/Process.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 2a61763fe18..f5a5d47b5ea 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -662,14 +662,15 @@ void ProcessInstanceInfoMatch::Clear() { m_match_all_users = false; } -ProcessSP Process::FindPlugin(lldb::TargetSP target_sp, const char *plugin_name, +ProcessSP Process::FindPlugin(lldb::TargetSP target_sp, + llvm::StringRef plugin_name, ListenerSP listener_sp, const FileSpec *crash_file_path) { static uint32_t g_process_unique_id = 0; ProcessSP process_sp; ProcessCreateInstance create_callback = nullptr; - if (plugin_name) { + if (!plugin_name.empty()) { ConstString const_plugin_name(plugin_name); create_callback = PluginManager::GetProcessCreateCallbackForPluginName(const_plugin_name); @@ -3245,13 +3246,12 @@ void Process::CompleteAttach() { m_stop_info_override_callback = process_arch.GetStopInfoOverrideCallback(); } -Error Process::ConnectRemote(Stream *strm, const char *remote_url) { +Error Process::ConnectRemote(Stream *strm, llvm::StringRef remote_url) { m_abi_sp.reset(); m_process_input_reader.reset(); // Find the process and its architecture. Make sure it matches the - // architecture - // of the current Target, and if not adjust it. + // architecture of the current Target, and if not adjust it. Error error(DoConnectRemote(strm, remote_url)); if (error.Success()) { |

