diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2018-11-01 15:47:33 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2018-11-01 15:47:33 +0000 |
| commit | 7c5310bbd3eeaa654f4f008e93f8a91cefe69c06 (patch) | |
| tree | 3ab7babc86ddd54dcb145ada6e745ca0e6c8fd21 /lldb/source/Plugins/Platform/Windows | |
| parent | c5fe3ce2ec8b44b2cbab6fe5dc50633492fbd80d (diff) | |
| download | bcm5719-llvm-7c5310bbd3eeaa654f4f008e93f8a91cefe69c06.tar.gz bcm5719-llvm-7c5310bbd3eeaa654f4f008e93f8a91cefe69c06.zip | |
[FileSystem] Remove GetPermissions() and Readable() from FileSpec
This patch removes the GetPermissions and GetReadable methods from
FileSpec and updates its uses with calls to the FileSystem.
Differential revision: https://reviews.llvm.org/D53831
llvm-svn: 345843
Diffstat (limited to 'lldb/source/Plugins/Platform/Windows')
| -rw-r--r-- | lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp b/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp index 966d1c53cfb..fd1a4022b65 100644 --- a/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp +++ b/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp @@ -262,7 +262,8 @@ Status PlatformWindows::ResolveExecutable( } if (error.Fail() || !exe_module_sp) { - if (resolved_module_spec.GetFileSpec().Readable()) { + if (FileSystem::Instance().Readable( + resolved_module_spec.GetFileSpec())) { error.SetErrorStringWithFormat( "'%s' doesn't contain any '%s' platform architectures: %s", resolved_module_spec.GetFileSpec().GetPath().c_str(), |

