for (int i = 0; i < static_cast<int>(argc); ++i) {
cstr = data.GetCStr(&offset);
if (cstr)
- proc_args.AppendArgument(cstr);
+ proc_args.AppendArgument(llvm::StringRef(cstr));
}
Args &proc_env = process_info.GetEnvironmentEntries();
llvm::Triple::MacOSX);
}
- proc_env.AppendArgument(cstr);
+ proc_env.AppendArgument(llvm::StringRef(cstr));
}
return true;
}
if (!str_sp)
continue;
- launch_info.GetArguments().AppendArgument(str_sp->GetValue().c_str());
+ launch_info.GetArguments().AppendArgument(
+ llvm::StringRef(str_sp->GetValue().c_str()));
}
}
NSString *version_value = [version_info objectForKey:@"ProductVersion"];
const char *version_str = [version_value UTF8String];
if (version_str)
- Args::StringToVersion(version_str, g_major, g_minor, g_update);
+ Args::StringToVersion(llvm::StringRef(version_str), g_major, g_minor,
+ g_update);
}
}
__FUNCTION__, error.AsCString());
return error;
}
- debugserver_args.AppendArgument("--named-pipe");
- debugserver_args.AppendArgument(named_pipe_path.c_str());
+ debugserver_args.AppendArgument(llvm::StringRef("--named-pipe"));
+ debugserver_args.AppendArgument(
+ llvm::StringRef(named_pipe_path.c_str()));
#else
// Binding to port zero, we need to figure out what port it ends up
// using using an unnamed pipe...
if (env_debugserver_log_flags) {
::snprintf(arg_cstr, sizeof(arg_cstr), "--log-flags=%s",
env_debugserver_log_flags);
- debugserver_args.AppendArgument(arg_cstr);
+ debugserver_args.AppendArgument(llvm::StringRef(arg_cstr));
}
#else
const char *env_debugserver_log_channels =