Fix module cache sym links' creation for symbol files.

http://reviews.llvm.org/D14264

llvm-svn: 251871
This commit is contained in:
Oleksiy Vyalov 2015-11-03 00:30:19 +00:00
parent dca2837b76
commit 1ef2cb9f71
1 changed files with 2 additions and 2 deletions

View File

@ -304,13 +304,13 @@ ModuleCache::GetAndPut (const FileSpec &root_dir_spec,
// contain the neccessary symbols and the debugging is also possible without a symfile.
return Error ();
FileSpec symfile_spec = GetSymbolFileSpec (cached_module_sp->GetFileSpec ());
error = Put (root_dir_spec, hostname, module_spec, tmp_download_sym_file_spec, symfile_spec);
error = Put (root_dir_spec, hostname, module_spec, tmp_download_sym_file_spec, GetSymbolFileSpec(module_spec.GetFileSpec ()));
if (error.Fail ())
return Error ("Failed to put symbol file into cache: %s", error.AsCString ());
tmp_symfile_remover.releaseFile();
FileSpec symfile_spec = GetSymbolFileSpec (cached_module_sp->GetFileSpec ());
cached_module_sp->SetSymbolFileFileSpec (symfile_spec);
return Error ();
}