summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/macosx/Symbols.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-11-08 00:14:50 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-11-08 00:14:50 +0000
commit3a58d89819389488df9fb5155f6d73ddd60e4816 (patch)
tree481f9e7a79eaf70ff06d7400a3ecf19c9f142aae /lldb/source/Host/macosx/Symbols.cpp
parent09dff53840787c0dbc031f1e5723834f62073f74 (diff)
downloadbcm5719-llvm-3a58d89819389488df9fb5155f6d73ddd60e4816.tar.gz
bcm5719-llvm-3a58d89819389488df9fb5155f6d73ddd60e4816.zip
[FileSystem] Add convenience method to check for directories.
Replace calls to LLVM's is_directory with calls to LLDB's FileSytem class. For this I introduced a new convenience method that, like the other methods, takes either a path or filespec. This still uses the LLVM functions under the hood. Differential revision: https://reviews.llvm.org/D54135 llvm-svn: 346375
Diffstat (limited to 'lldb/source/Host/macosx/Symbols.cpp')
-rw-r--r--lldb/source/Host/macosx/Symbols.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/macosx/Symbols.cpp b/lldb/source/Host/macosx/Symbols.cpp
index 6c09014c801..2872be2b904 100644
--- a/lldb/source/Host/macosx/Symbols.cpp
+++ b/lldb/source/Host/macosx/Symbols.cpp
@@ -109,7 +109,7 @@ int LocateMacOSXFilesUsingDebugSymbols(const ModuleSpec &module_spec,
if (path[0] == '~')
FileSystem::Instance().Resolve(dsym_filespec);
- if (llvm::sys::fs::is_directory(dsym_filespec.GetPath())) {
+ if (FileSystem::Instance().IsDirectory(dsym_filespec)) {
dsym_filespec =
Symbols::FindSymbolFileInBundle(dsym_filespec, uuid, arch);
++items_found;
OpenPOWER on IntegriCloud