diff options
author | Fangrui Song <maskray@google.com> | 2019-08-05 05:43:48 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-08-05 05:43:48 +0000 |
commit | d9b948b6eb7362f36264b71795dab179906e36be (patch) | |
tree | 35f79bbd28bc13b6b4b5e07ffece5d0388964b47 /llvm/tools/gold/gold-plugin.cpp | |
parent | 1e4f2792faf1c14a6cfdbac3c6101b5faec5fbac (diff) | |
download | bcm5719-llvm-d9b948b6eb7362f36264b71795dab179906e36be.tar.gz bcm5719-llvm-d9b948b6eb7362f36264b71795dab179906e36be.zip |
Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC
F_{None,Text,Append} are kept for compatibility since r334221.
llvm-svn: 367800
Diffstat (limited to 'llvm/tools/gold/gold-plugin.cpp')
-rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 1052c48734d..0211add7e20 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -886,7 +886,7 @@ static std::unique_ptr<LTO> createLTO(IndexWriteCallback OnIndexWrite, case options::OT_BC_ONLY: Conf.PostInternalizeModuleHook = [](size_t Task, const Module &M) { std::error_code EC; - raw_fd_ostream OS(output_name, EC, sys::fs::OpenFlags::F_None); + raw_fd_ostream OS(output_name, EC, sys::fs::OpenFlags::OF_None); if (EC) message(LDPL_FATAL, "Failed to write the output file."); WriteBitcodeToFile(M, OS, /* ShouldPreserveUseListOrder */ false); @@ -947,7 +947,7 @@ static void writeEmptyDistributedBuildOutputs(const std::string &ModulePath, std::error_code EC; { raw_fd_ostream OS(NewModulePath + ".thinlto.bc", EC, - sys::fs::OpenFlags::F_None); + sys::fs::OpenFlags::OF_None); if (EC) message(LDPL_FATAL, "Failed to write '%s': %s", (NewModulePath + ".thinlto.bc").c_str(), EC.message().c_str()); @@ -960,7 +960,7 @@ static void writeEmptyDistributedBuildOutputs(const std::string &ModulePath, } if (options::thinlto_emit_imports_files) { raw_fd_ostream OS(NewModulePath + ".imports", EC, - sys::fs::OpenFlags::F_None); + sys::fs::OpenFlags::OF_None); if (EC) message(LDPL_FATAL, "Failed to write '%s': %s", (NewModulePath + ".imports").c_str(), EC.message().c_str()); @@ -975,7 +975,7 @@ static std::unique_ptr<raw_fd_ostream> CreateLinkedObjectsFile() { assert(options::thinlto_index_only); std::error_code EC; auto LinkedObjectsFile = llvm::make_unique<raw_fd_ostream>( - options::thinlto_linked_objects_file, EC, sys::fs::OpenFlags::F_None); + options::thinlto_linked_objects_file, EC, sys::fs::OpenFlags::OF_None); if (EC) message(LDPL_FATAL, "Failed to create '%s': %s", options::thinlto_linked_objects_file.c_str(), EC.message().c_str()); |