mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-01 18:01:40 +00:00
[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:
1 parent
c5fe3ce2ec
commit
7c5310bbd3
13 files changed
+17
-50
No files matched your search
+1
-1
@@ -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