From 249eb144d9960d60fd7f81080ce2be93b124f9b0 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 13 Dec 2004 20:03:02 +0000 Subject: [PATCH] For PR351: Replace MakeFileReadable and MakeFileExecutable (from FileUtilities) with sys::Path::makeReadable and sys::Path:makeExecutable, respectively. llvm-svn: 18909 --- llvm/tools/gccld/gccld.cpp | 6 +++--- 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 41c176f86907..7f10fc55b233 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 8bd2cc8376bb..ae64d57484bb 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;