summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/gccld/gccld.cpp6
-rw-r--r--tools/llvm-ld/llvm-ld.cpp6
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/gccld/gccld.cpp b/tools/gccld/gccld.cpp
index 41c176f..7f10fc5 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 8bd2cc8..ae64d57 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;