diff options
| author | Fangrui Song <i@maskray.me> | 2021-04-29 15:25:17 -0700 |
|---|---|---|
| committer | Fangrui Song <i@maskray.me> | 2021-04-29 15:25:17 -0700 |
| commit | 0142d1cb97a46f8aa1ffc4cb3c5462eb148b96de (patch) | |
| tree | 1214b53110d889d9febaf34786d592f729cb2a9b /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 18587b14d1d820d31151d5c0a633621a67149e78 (diff) | |
| download | rust-0142d1cb97a46f8aa1ffc4cb3c5462eb148b96de.tar.gz rust-0142d1cb97a46f8aa1ffc4cb3c5462eb148b96de.zip | |
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp index 617b2ed970e..65a988629c3 100644 --- a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp @@ -609,7 +609,7 @@ LLVMRustWriteOutputFile(LLVMTargetMachineRef Target, LLVMPassManagerRef PMR, std::string ErrorInfo; 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) ErrorInfo = EC.message(); if (ErrorInfo != "") { @@ -619,7 +619,7 @@ LLVMRustWriteOutputFile(LLVMTargetMachineRef Target, LLVMPassManagerRef PMR, buffer_ostream BOS(OS); if (DwoPath) { - raw_fd_ostream DOS(DwoPath, EC, sys::fs::F_None); + raw_fd_ostream DOS(DwoPath, EC, sys::fs::OF_None); EC.clear(); if (EC) ErrorInfo = EC.message(); @@ -1146,7 +1146,7 @@ extern "C" LLVMRustResult LLVMRustPrintModule(LLVMModuleRef M, const char *Path, DemangleFn Demangle) { std::string ErrorInfo; 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) ErrorInfo = EC.message(); if (ErrorInfo != "") { |
