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/Utility | |
| 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/Utility')
| -rw-r--r-- | lldb/source/Utility/FileSpec.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lldb/source/Utility/FileSpec.cpp b/lldb/source/Utility/FileSpec.cpp index f94f8dd6c53..c41a0643742 100644 --- a/lldb/source/Utility/FileSpec.cpp +++ b/lldb/source/Utility/FileSpec.cpp @@ -458,10 +458,6 @@ void FileSpec::Dump(Stream *s) const { //------------------------------------------------------------------ bool FileSpec::Exists() const { return llvm::sys::fs::exists(GetPath()); } -bool FileSpec::Readable() const { - return GetPermissions() & llvm::sys::fs::perms::all_read; -} - bool FileSpec::ResolveExecutableLocation() { // CLEANUP: Use StringRef for string handling. if (!m_directory) { @@ -509,15 +505,6 @@ bool FileSpec::ResolvePath() { FileSpec::Style FileSpec::GetPathStyle() const { return m_style; } -uint32_t FileSpec::GetPermissions() const { - namespace fs = llvm::sys::fs; - fs::file_status st; - if (fs::status(GetPath(), st, false)) - return fs::perms::perms_not_known; - - return st.permissions(); -} - //------------------------------------------------------------------ // Directory string get accessor. //------------------------------------------------------------------ |

