summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandCompletions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Commands/CommandCompletions.cpp')
-rw-r--r--lldb/source/Commands/CommandCompletions.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lldb/source/Commands/CommandCompletions.cpp b/lldb/source/Commands/CommandCompletions.cpp
index 9e277db0c5e..10c1a2429bb 100644
--- a/lldb/source/Commands/CommandCompletions.cpp
+++ b/lldb/source/Commands/CommandCompletions.cpp
@@ -33,7 +33,6 @@
#include "lldb/Utility/CleanUp.h"
#include "llvm/ADT/SmallString.h"
-#include "llvm/Support/FileSystem.h"
using namespace lldb_private;
@@ -110,7 +109,7 @@ typedef struct DiskFilesOrDirectoriesBaton {
} DiskFilesOrDirectoriesBaton;
FileSpec::EnumerateDirectoryResult
-DiskFilesOrDirectoriesCallback(void *baton, llvm::sys::fs::file_type file_type,
+DiskFilesOrDirectoriesCallback(void *baton, FileSpec::FileType file_type,
const FileSpec &spec) {
const char *name = spec.GetFilename().AsCString();
@@ -139,10 +138,10 @@ DiskFilesOrDirectoriesCallback(void *baton, llvm::sys::fs::file_type file_type,
strcpy(end_ptr, name);
bool isa_directory = false;
- if (file_type == llvm::sys::fs::file_type::directory_file)
+ if (file_type == FileSpec::eFileTypeDirectory)
isa_directory = true;
- else if (file_type == llvm::sys::fs::file_type::symlink_file) {
- if (llvm::sys::fs::is_directory(partial_name_copy))
+ else if (file_type == FileSpec::eFileTypeSymbolicLink) {
+ if (FileSpec(partial_name_copy, false).IsDirectory())
isa_directory = true;
}
OpenPOWER on IntegriCloud