[Lldb-commits] [lldb] r282311 - Mutatis mutandis for char * -> StringRef.
Jim Ingham via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 23 15:36:01 PDT 2016
Author: jingham
Date: Fri Sep 23 17:36:00 2016
New Revision: 282311
URL: http://llvm.org/viewvc/llvm-project?rev=282311&view=rev
Log:
Mutatis mutandis for char * -> StringRef.
Modified:
lldb/trunk/source/Host/macosx/Host.mm
Modified: lldb/trunk/source/Host/macosx/Host.mm
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/Host.mm?rev=282311&r1=282310&r2=282311&view=diff
==============================================================================
--- lldb/trunk/source/Host/macosx/Host.mm (original)
+++ lldb/trunk/source/Host/macosx/Host.mm Fri Sep 23 17:36:00 2016
@@ -1156,19 +1156,19 @@ static Error LaunchProcessXPC(const char
xpc_dictionary_set_int64(message, LauncherXPCServicePosixspawnFlagsKey,
Host::GetPosixspawnFlags(launch_info));
const FileAction *file_action = launch_info.GetFileActionForFD(STDIN_FILENO);
- if (file_action && file_action->GetPath()) {
+ if (file_action && !file_action->GetPath().empty()) {
xpc_dictionary_set_string(message, LauncherXPCServiceStdInPathKeyKey,
- file_action->GetPath());
+ file_action->GetPath().str().c_str());
}
file_action = launch_info.GetFileActionForFD(STDOUT_FILENO);
- if (file_action && file_action->GetPath()) {
+ if (file_action && !file_action->GetPath().empty()) {
xpc_dictionary_set_string(message, LauncherXPCServiceStdOutPathKeyKey,
- file_action->GetPath());
+ file_action->GetPath().str().c_str());
}
file_action = launch_info.GetFileActionForFD(STDERR_FILENO);
- if (file_action && file_action->GetPath()) {
+ if (file_action && !file_action->GetPath().empty()) {
xpc_dictionary_set_string(message, LauncherXPCServiceStdErrPathKeyKey,
- file_action->GetPath());
+ file_action->GetPath().str().c_str());
}
xpc_object_t reply =
More information about the lldb-commits
mailing list