forked from OSchip/llvm-project
For PR351:
Replace MakeFileReadable and MakeFileExecutable (from FileUtilities) with sys::Path::makeReadable and sys::Path:makeExecutable, respectively. llvm-svn: 18909
This commit is contained in:
parent
8f430a3b59
commit
249eb144d9
|
@ -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";
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue