Fixes a few more places where we were manually setting the filename.

llvm-svn: 216247
This commit is contained in:
Zachary Turner 2014-08-21 23:56:55 +00:00
parent c667974b65
commit c25146b67b
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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