diff options
Diffstat (limited to 'lldb/source/Target/ModuleCache.cpp')
| -rw-r--r-- | lldb/source/Target/ModuleCache.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lldb/source/Target/ModuleCache.cpp b/lldb/source/Target/ModuleCache.cpp index 123b6876af22..d01307c23e8e 100644 --- a/lldb/source/Target/ModuleCache.cpp +++ b/lldb/source/Target/ModuleCache.cpp @@ -59,19 +59,15 @@ public: void Delete(); }; -static FileSpec JoinPath(const FileSpec &path1, const char *path2) { +FileSpec JoinPath(const FileSpec &path1, const char *path2) { FileSpec result_spec(path1); result_spec.AppendPathComponent(path2); return result_spec; } -static Error MakeDirectory(const FileSpec &dir_path) { - llvm::sys::fs::file_status st; - if (status(dir_path.GetPath(), st)) - return Error("Could not stat path"); - - if (exists(st)) { - if (!is_directory(st)) +Error MakeDirectory(const FileSpec &dir_path) { + if (dir_path.Exists()) { + if (!dir_path.IsDirectory()) return Error("Invalid existing path"); return Error(); |
