Skip to content

Commit 0142d1c

Browse files
committed
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.
1 parent 18587b1 commit 0142d1c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ LLVMRustWriteOutputFile(LLVMTargetMachineRef Target, LLVMPassManagerRef PMR,
609609

610610
std::string ErrorInfo;
611611
std::error_code EC;
612-
raw_fd_ostream OS(Path, EC, sys::fs::F_None);
612+
raw_fd_ostream OS(Path, EC, sys::fs::OF_None);
613613
if (EC)
614614
ErrorInfo = EC.message();
615615
if (ErrorInfo != "") {
@@ -619,7 +619,7 @@ LLVMRustWriteOutputFile(LLVMTargetMachineRef Target, LLVMPassManagerRef PMR,
619619

620620
buffer_ostream BOS(OS);
621621
if (DwoPath) {
622-
raw_fd_ostream DOS(DwoPath, EC, sys::fs::F_None);
622+
raw_fd_ostream DOS(DwoPath, EC, sys::fs::OF_None);
623623
EC.clear();
624624
if (EC)
625625
ErrorInfo = EC.message();
@@ -1146,7 +1146,7 @@ extern "C" LLVMRustResult
11461146
LLVMRustPrintModule(LLVMModuleRef M, const char *Path, DemangleFn Demangle) {
11471147
std::string ErrorInfo;
11481148
std::error_code EC;
1149-
raw_fd_ostream OS(Path, EC, sys::fs::F_None);
1149+
raw_fd_ostream OS(Path, EC, sys::fs::OF_None);
11501150
if (EC)
11511151
ErrorInfo = EC.message();
11521152
if (ErrorInfo != "") {

0 commit comments

Comments
 (0)