F_None was renamed OF_None

This patch updates usages of F_None to OF_None, as LLVM changed that in
commit 3302af9d4c39642bebe64dd60a3aa162fefc44b2.
This commit is contained in:
Evan Wilde
2021-06-22 16:54:57 -07:00
parent 73182c943c
commit 0aafd09835
27 changed files with 51 additions and 51 deletions

View File

@@ -2166,7 +2166,7 @@ void SwiftDeclCollector::deSerialize(StringRef Filename) {
// Serialize the content of all roots to a given file using JSON format.
void SwiftDeclCollector::serialize(StringRef Filename, SDKNode *Root) {
std::error_code EC;
llvm::raw_fd_ostream fs(Filename, EC, llvm::sys::fs::F_None);
llvm::raw_fd_ostream fs(Filename, EC, llvm::sys::fs::OF_None);
json::Output yout(fs);
yout << Root;
}
@@ -2259,7 +2259,7 @@ int swift::ide::api::dumpSDKContent(const CompilerInvocation &InitInvok,
int swift::ide::api::deserializeSDKDump(StringRef dumpPath, StringRef OutputPath,
CheckerOptions Opts) {
std::error_code EC;
llvm::raw_fd_ostream FS(OutputPath, EC, llvm::sys::fs::F_None);
llvm::raw_fd_ostream FS(OutputPath, EC, llvm::sys::fs::OF_None);
if (!fs::exists(dumpPath)) {
llvm::errs() << dumpPath << " does not exist\n";
return 1;