Replace llvm::sys::fs::F_None with llvm::sys::fs::OF_None
The former is deprecated. OF_None has been available in LLVM since 2018-06.
This commit is contained in:
parent
18587b14d1
commit
0142d1cb97
1 changed files with 3 additions and 3 deletions
|
@ -609,7 +609,7 @@ LLVMRustWriteOutputFile(LLVMTargetMachineRef Target, LLVMPassManagerRef PMR,
|
||||||
|
|
||||||
std::string ErrorInfo;
|
std::string ErrorInfo;
|
||||||
std::error_code EC;
|
std::error_code EC;
|
||||||
raw_fd_ostream OS(Path, EC, sys::fs::F_None);
|
raw_fd_ostream OS(Path, EC, sys::fs::OF_None);
|
||||||
if (EC)
|
if (EC)
|
||||||
ErrorInfo = EC.message();
|
ErrorInfo = EC.message();
|
||||||
if (ErrorInfo != "") {
|
if (ErrorInfo != "") {
|
||||||
|
@ -619,7 +619,7 @@ LLVMRustWriteOutputFile(LLVMTargetMachineRef Target, LLVMPassManagerRef PMR,
|
||||||
|
|
||||||
buffer_ostream BOS(OS);
|
buffer_ostream BOS(OS);
|
||||||
if (DwoPath) {
|
if (DwoPath) {
|
||||||
raw_fd_ostream DOS(DwoPath, EC, sys::fs::F_None);
|
raw_fd_ostream DOS(DwoPath, EC, sys::fs::OF_None);
|
||||||
EC.clear();
|
EC.clear();
|
||||||
if (EC)
|
if (EC)
|
||||||
ErrorInfo = EC.message();
|
ErrorInfo = EC.message();
|
||||||
|
@ -1146,7 +1146,7 @@ extern "C" LLVMRustResult
|
||||||
LLVMRustPrintModule(LLVMModuleRef M, const char *Path, DemangleFn Demangle) {
|
LLVMRustPrintModule(LLVMModuleRef M, const char *Path, DemangleFn Demangle) {
|
||||||
std::string ErrorInfo;
|
std::string ErrorInfo;
|
||||||
std::error_code EC;
|
std::error_code EC;
|
||||||
raw_fd_ostream OS(Path, EC, sys::fs::F_None);
|
raw_fd_ostream OS(Path, EC, sys::fs::OF_None);
|
||||||
if (EC)
|
if (EC)
|
||||||
ErrorInfo = EC.message();
|
ErrorInfo = EC.message();
|
||||||
if (ErrorInfo != "") {
|
if (ErrorInfo != "") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue