[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
This commit is contained in:
@@ -2536,7 +2536,7 @@ bool RenderScriptRuntime::LoadAllocation(Stream &strm, const uint32_t alloc_id,
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!file.Readable()) {
|
||||
if (!FileSystem::Instance().Readable(file)) {
|
||||
strm.Printf("Error: File %s does not have readable permissions", path);
|
||||
strm.EOL();
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user