forked from OSchip/llvm-project
Fixes a few more places where we were manually setting the filename.
llvm-svn: 216247
This commit is contained in:
parent
c667974b65
commit
c25146b67b
|
@ -312,7 +312,7 @@ ClangExpressionParser::Parse (Stream &stream)
|
|||
FileSpec tmpdir_file_spec;
|
||||
if (HostInfo::GetLLDBPath(lldb::ePathTypeLLDBTempSystemDir, tmpdir_file_spec))
|
||||
{
|
||||
tmpdir_file_spec.GetFilename().SetCString("expr.XXXXXX");
|
||||
tmpdir_file_spec.AppendPathComponent("expr.XXXXXX");
|
||||
temp_source_path = std::move(tmpdir_file_spec.GetPath());
|
||||
}
|
||||
else
|
||||
|
|
|
@ -921,7 +921,7 @@ Host::RunShellCommand (const char *command,
|
|||
FileSpec tmpdir_file_spec;
|
||||
if (HostInfo::GetLLDBPath(ePathTypeLLDBTempSystemDir, tmpdir_file_spec))
|
||||
{
|
||||
tmpdir_file_spec.GetFilename().SetCString("lldb-shell-output.XXXXXX");
|
||||
tmpdir_file_spec.AppendPathComponent("lldb-shell-output.XXXXXX");
|
||||
strncpy(output_file_path_buffer, tmpdir_file_spec.GetPath().c_str(), sizeof(output_file_path_buffer));
|
||||
}
|
||||
else
|
||||
|
|
|
@ -753,7 +753,7 @@ GDBRemoteCommunication::StartDebugserverProcess (const char *hostname,
|
|||
FileSpec tmpdir_file_spec;
|
||||
if (HostInfo::GetLLDBPath(ePathTypeLLDBTempSystemDir, tmpdir_file_spec))
|
||||
{
|
||||
tmpdir_file_spec.GetFilename().SetCString("debugserver-named-pipe.XXXXXX");
|
||||
tmpdir_file_spec.AppendPathComponent("debugserver-named-pipe.XXXXXX");
|
||||
strncpy(named_pipe_path, tmpdir_file_spec.GetPath().c_str(), sizeof(named_pipe_path));
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue