summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-11-01 15:47:33 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-11-01 15:47:33 +0000
commit7c5310bbd3eeaa654f4f008e93f8a91cefe69c06 (patch)
tree3ab7babc86ddd54dcb145ada6e745ca0e6c8fd21 /lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
parentc5fe3ce2ec8b44b2cbab6fe5dc50633492fbd80d (diff)
downloadbcm5719-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/gdb-server/PlatformRemoteGDBServer.cpp')
-rw-r--r--lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp b/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
index 7f86d6d0347..1a9dc924b5b 100644
--- a/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
+++ b/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
@@ -142,7 +142,7 @@ Status PlatformRemoteGDBServer::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(),
OpenPOWER on IntegriCloud