diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-13 20:03:02 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-13 20:03:02 +0000 |
commit | 249eb144d9960d60fd7f81080ce2be93b124f9b0 (patch) | |
tree | 78727d0e6f94078698511598e8e0414078213390 | |
parent | 8f430a3b59199bac455fd32d8e5204a7a40d0cae (diff) | |
download | bcm5719-llvm-249eb144d9960d60fd7f81080ce2be93b124f9b0.tar.gz bcm5719-llvm-249eb144d9960d60fd7f81080ce2be93b124f9b0.zip |
For PR351:
Replace MakeFileReadable and MakeFileExecutable (from FileUtilities) with
sys::Path::makeReadable and sys::Path:makeExecutable, respectively.
llvm-svn: 18909
-rw-r--r-- | llvm/tools/gccld/gccld.cpp | 6 | ||||
-rw-r--r-- | llvm/tools/llvm-ld/llvm-ld.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/llvm/tools/gccld/gccld.cpp b/llvm/tools/gccld/gccld.cpp index 41c176f8690..7f10fc55b23 100644 --- a/llvm/tools/gccld/gccld.cpp +++ b/llvm/tools/gccld/gccld.cpp @@ -329,11 +329,11 @@ int main(int argc, char **argv, char **envp) { } // Make the script executable... - MakeFileExecutable(OutputFilename); + sys::Path(OutputFilename).makeExecutable(); // Make the bytecode file readable and directly executable in LLEE as well - MakeFileExecutable(RealBytecodeOutput); - MakeFileReadable(RealBytecodeOutput); + sys::Path(RealBytecodeOutput).makeExecutable(); + sys::Path(RealBytecodeOutput).makeReadable(); } } catch (const char*msg) { std::cerr << argv[0] << ": " << msg << "\n"; diff --git a/llvm/tools/llvm-ld/llvm-ld.cpp b/llvm/tools/llvm-ld/llvm-ld.cpp index 8bd2cc8376b..ae64d57484b 100644 --- a/llvm/tools/llvm-ld/llvm-ld.cpp +++ b/llvm/tools/llvm-ld/llvm-ld.cpp @@ -527,11 +527,11 @@ int main(int argc, char **argv, char **envp) { } // Make the script executable... - MakeFileExecutable(OutputFilename); + sys::Path(OutputFilename).makeExecutable(); // Make the bytecode file readable and directly executable in LLEE as well - MakeFileExecutable(RealBytecodeOutput); - MakeFileReadable(RealBytecodeOutput); + sys::Path(RealBytecodeOutput).makeExecutable(); + sys::Path(RealBytecodeOutput).makeReadable(); } return 0; |