mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
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
This commit is contained in:
@ -329,11 +329,11 @@ int main(int argc, char **argv, char **envp) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Make the script executable...
|
// Make the script executable...
|
||||||
MakeFileExecutable(OutputFilename);
|
sys::Path(OutputFilename).makeExecutable();
|
||||||
|
|
||||||
// Make the bytecode file readable and directly executable in LLEE as well
|
// Make the bytecode file readable and directly executable in LLEE as well
|
||||||
MakeFileExecutable(RealBytecodeOutput);
|
sys::Path(RealBytecodeOutput).makeExecutable();
|
||||||
MakeFileReadable(RealBytecodeOutput);
|
sys::Path(RealBytecodeOutput).makeReadable();
|
||||||
}
|
}
|
||||||
} catch (const char*msg) {
|
} catch (const char*msg) {
|
||||||
std::cerr << argv[0] << ": " << msg << "\n";
|
std::cerr << argv[0] << ": " << msg << "\n";
|
||||||
|
@ -527,11 +527,11 @@ int main(int argc, char **argv, char **envp) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Make the script executable...
|
// Make the script executable...
|
||||||
MakeFileExecutable(OutputFilename);
|
sys::Path(OutputFilename).makeExecutable();
|
||||||
|
|
||||||
// Make the bytecode file readable and directly executable in LLEE as well
|
// Make the bytecode file readable and directly executable in LLEE as well
|
||||||
MakeFileExecutable(RealBytecodeOutput);
|
sys::Path(RealBytecodeOutput).makeExecutable();
|
||||||
MakeFileReadable(RealBytecodeOutput);
|
sys::Path(RealBytecodeOutput).makeReadable();
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user