mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 14:48:27 +08:00
Resubmit FileSystem changes.
This was originall reverted due to some test failures in ModuleCache and TestCompDirSymlink. These issues have all been resolved and the code now passes all tests. Differential Revision: https://reviews.llvm.org/D30698 llvm-svn: 297300
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "lldb/Symbol/VariableList.h"
|
||||
#include "lldb/Utility/Log.h"
|
||||
|
||||
#include "llvm/Support/FileSystem.h"
|
||||
#include "llvm/Support/Threading.h"
|
||||
|
||||
using namespace lldb;
|
||||
@@ -766,7 +767,8 @@ Error ModuleList::GetSharedModule(const ModuleSpec &module_spec,
|
||||
auto search_path_spec = module_search_paths_ptr->GetFileSpecAtIndex(idx);
|
||||
if (!search_path_spec.ResolvePath())
|
||||
continue;
|
||||
if (!search_path_spec.Exists() || !search_path_spec.IsDirectory())
|
||||
namespace fs = llvm::sys::fs;
|
||||
if (!fs::is_directory(search_path_spec.GetPath()))
|
||||
continue;
|
||||
search_path_spec.AppendPathComponent(
|
||||
module_spec.GetFileSpec().GetFilename().AsCString());
|
||||
|
||||
Reference in New Issue
Block a user