diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-13 19:59:50 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-13 19:59:50 +0000 |
| commit | 94bf2265df04e74faca356eefb77fdf53b152ae9 (patch) | |
| tree | abb8b6521ad01e3a607b22eb803dd8f6d1451f2d /llvm/lib/System/Win32/Path.cpp | |
| parent | acc4e545523c98fb55ae9ea0ef17f08192c9eb42 (diff) | |
| download | bcm5719-llvm-94bf2265df04e74faca356eefb77fdf53b152ae9.tar.gz bcm5719-llvm-94bf2265df04e74faca356eefb77fdf53b152ae9.zip | |
For PR351:
Implement three new functions to allow setting access/permission bits on
the file referenced by a path. The makeReadable and makeExecutable methods
replace the FileUtilities MakeFileReadable and MakeFileExecutable
functions. The makeWritable function is new and provided for consistency
since Path has a writable() method.
llvm-svn: 18907
Diffstat (limited to 'llvm/lib/System/Win32/Path.cpp')
| -rw-r--r-- | llvm/lib/System/Win32/Path.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/System/Win32/Path.cpp b/llvm/lib/System/Win32/Path.cpp index e847154e583..43d553bbd99 100644 --- a/llvm/lib/System/Win32/Path.cpp +++ b/llvm/lib/System/Win32/Path.cpp @@ -287,6 +287,15 @@ Path::getLast() const { return path.substr(pos+1); } +void Path::makeReadable() { +} + +void Path::makeWriteable() { +} + +void Path::makeExecutable() { +} + bool Path::setDirectory(const std::string& a_path) { if (a_path.size() == 0) |

