diff options
Diffstat (limited to 'llvm')
-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; |