From: Reid Spencer Date: Mon, 13 Dec 2004 20:03:02 +0000 (+0000) Subject: For PR351: X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=319cdeccd16a6e1da087ff654e6fb7060b07fe55;p=oota-llvm.git For PR351: Replace MakeFileReadable and MakeFileExecutable (from FileUtilities) with sys::Path::makeReadable and sys::Path:makeExecutable, respectively. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18909 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/gccld/gccld.cpp b/tools/gccld/gccld.cpp index 41c176f8690..7f10fc55b23 100644 --- a/tools/gccld/gccld.cpp +++ b/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/tools/llvm-ld/llvm-ld.cpp b/tools/llvm-ld/llvm-ld.cpp index 8bd2cc8376b..ae64d57484b 100644 --- a/tools/llvm-ld/llvm-ld.cpp +++ b/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;