mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user