summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-13 20:03:02 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-13 20:03:02 +0000
commit249eb144d9960d60fd7f81080ce2be93b124f9b0 (patch)
tree78727d0e6f94078698511598e8e0414078213390
parent8f430a3b59199bac455fd32d8e5204a7a40d0cae (diff)
downloadbcm5719-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.cpp6
-rw-r--r--llvm/tools/llvm-ld/llvm-ld.cpp6
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;
OpenPOWER on IntegriCloud