Author: maskray Date: Sun Aug 4 22:43:48 2019 New Revision: 367800 URL: http://llvm.org/viewvc/llvm-project?rev=367800&view=rev Log: Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC
F_{None,Text,Append} are kept for compatibility since r334221. Modified: lldb/trunk/include/lldb/Utility/Reproducer.h lldb/trunk/source/API/SBReproducerPrivate.h lldb/trunk/source/Core/Debugger.cpp lldb/trunk/source/Plugins/Platform/Android/AdbClient.cpp lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp lldb/trunk/source/Target/Platform.cpp lldb/trunk/source/Utility/Reproducer.cpp lldb/trunk/tools/lldb-server/LLDBServerUtilities.cpp Modified: lldb/trunk/include/lldb/Utility/Reproducer.h URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Utility/Reproducer.h?rev=367800&r1=367799&r2=367800&view=diff ============================================================================== --- lldb/trunk/include/lldb/Utility/Reproducer.h (original) +++ lldb/trunk/include/lldb/Utility/Reproducer.h Sun Aug 4 22:43:48 2019 @@ -137,7 +137,7 @@ class DataRecorder { public: DataRecorder(const FileSpec &filename, std::error_code &ec) : m_filename(filename.GetFilename().GetStringRef()), - m_os(filename.GetPath(), ec, llvm::sys::fs::F_Text), m_record(true) {} + m_os(filename.GetPath(), ec, llvm::sys::fs::OF_Text), m_record(true) {} static llvm::Expected<std::unique_ptr<DataRecorder>> Create(const FileSpec &filename); Modified: lldb/trunk/source/API/SBReproducerPrivate.h URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBReproducerPrivate.h?rev=367800&r1=367799&r2=367800&view=diff ============================================================================== --- lldb/trunk/source/API/SBReproducerPrivate.h (original) +++ lldb/trunk/source/API/SBReproducerPrivate.h Sun Aug 4 22:43:48 2019 @@ -40,7 +40,7 @@ public: SBProvider(const FileSpec &directory) : Provider(directory), m_stream(directory.CopyByAppendingPathComponent("sbapi.bin").GetPath(), - m_ec, llvm::sys::fs::OpenFlags::F_None), + m_ec, llvm::sys::fs::OpenFlags::OF_None), m_serializer(m_stream) {} Serializer &GetSerializer() { return m_serializer; } Modified: lldb/trunk/source/Core/Debugger.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Debugger.cpp?rev=367800&r1=367799&r2=367800&view=diff ============================================================================== --- lldb/trunk/source/Core/Debugger.cpp (original) +++ lldb/trunk/source/Core/Debugger.cpp Sun Aug 4 22:43:48 2019 @@ -1200,9 +1200,9 @@ bool Debugger::EnableLog(llvm::StringRef if (pos != m_log_streams.end()) log_stream_sp = pos->second.lock(); if (!log_stream_sp) { - llvm::sys::fs::OpenFlags flags = llvm::sys::fs::F_Text; + llvm::sys::fs::OpenFlags flags = llvm::sys::fs::OF_Text; if (log_options & LLDB_LOG_OPTION_APPEND) - flags |= llvm::sys::fs::F_Append; + flags |= llvm::sys::fs::OF_Append; int FD; if (std::error_code ec = llvm::sys::fs::openFileForWrite( log_file, FD, llvm::sys::fs::CD_CreateAlways, flags)) { Modified: lldb/trunk/source/Plugins/Platform/Android/AdbClient.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/Android/AdbClient.cpp?rev=367800&r1=367799&r2=367800&view=diff ============================================================================== --- lldb/trunk/source/Plugins/Platform/Android/AdbClient.cpp (original) +++ lldb/trunk/source/Plugins/Platform/Android/AdbClient.cpp Sun Aug 4 22:43:48 2019 @@ -405,7 +405,7 @@ Status AdbClient::ShellToFile(const char const auto output_filename = output_file_spec.GetPath(); std::error_code EC; - llvm::raw_fd_ostream dst(output_filename, EC, llvm::sys::fs::F_None); + llvm::raw_fd_ostream dst(output_filename, EC, llvm::sys::fs::OF_None); if (EC) return Status("Unable to open local file %s", output_filename.c_str()); @@ -432,7 +432,7 @@ Status AdbClient::SyncService::internalP llvm::FileRemover local_file_remover(local_file_path); std::error_code EC; - llvm::raw_fd_ostream dst(local_file_path, EC, llvm::sys::fs::F_None); + llvm::raw_fd_ostream dst(local_file_path, EC, llvm::sys::fs::OF_None); if (EC) return Status("Unable to open local file %s", local_file_path.c_str()); Modified: lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp?rev=367800&r1=367799&r2=367800&view=diff ============================================================================== --- lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp (original) +++ lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp Sun Aug 4 22:43:48 2019 @@ -179,8 +179,8 @@ public: FileSpec history_file = GetRoot().CopyByAppendingPathComponent(Info::file); std::error_code EC; - m_stream_up = llvm::make_unique<raw_fd_ostream>(history_file.GetPath(), EC, - sys::fs::OpenFlags::F_Text); + m_stream_up = llvm::make_unique<raw_fd_ostream>( + history_file.GetPath(), EC, sys::fs::OpenFlags::OF_Text); return m_stream_up.get(); } Modified: lldb/trunk/source/Target/Platform.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Platform.cpp?rev=367800&r1=367799&r2=367800&view=diff ============================================================================== --- lldb/trunk/source/Target/Platform.cpp (original) +++ lldb/trunk/source/Target/Platform.cpp Sun Aug 4 22:43:48 2019 @@ -1628,7 +1628,7 @@ Status Platform::DownloadModuleSlice(con Status error; std::error_code EC; - llvm::raw_fd_ostream dst(dst_file_spec.GetPath(), EC, llvm::sys::fs::F_None); + llvm::raw_fd_ostream dst(dst_file_spec.GetPath(), EC, llvm::sys::fs::OF_None); if (EC) { error.SetErrorStringWithFormat("unable to open destination file: %s", dst_file_spec.GetPath().c_str()); Modified: lldb/trunk/source/Utility/Reproducer.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Utility/Reproducer.cpp?rev=367800&r1=367799&r2=367800&view=diff ============================================================================== --- lldb/trunk/source/Utility/Reproducer.cpp (original) +++ lldb/trunk/source/Utility/Reproducer.cpp Sun Aug 4 22:43:48 2019 @@ -176,7 +176,7 @@ void Generator::AddProvidersToIndex() { std::error_code EC; auto strm = llvm::make_unique<raw_fd_ostream>(index.GetPath(), EC, - sys::fs::OpenFlags::F_None); + sys::fs::OpenFlags::OF_None); yaml::Output yout(*strm); std::vector<std::string> files; @@ -254,7 +254,7 @@ void CommandProvider::Keep() { FileSpec file = GetRoot().CopyByAppendingPathComponent(Info::file); std::error_code ec; - llvm::raw_fd_ostream os(file.GetPath(), ec, llvm::sys::fs::F_Text); + llvm::raw_fd_ostream os(file.GetPath(), ec, llvm::sys::fs::OF_Text); if (ec) return; yaml::Output yout(os); @@ -266,7 +266,7 @@ void CommandProvider::Discard() { m_data void VersionProvider::Keep() { FileSpec file = GetRoot().CopyByAppendingPathComponent(Info::file); std::error_code ec; - llvm::raw_fd_ostream os(file.GetPath(), ec, llvm::sys::fs::F_Text); + llvm::raw_fd_ostream os(file.GetPath(), ec, llvm::sys::fs::OF_Text); if (ec) return; os << m_version << "\n"; Modified: lldb/trunk/tools/lldb-server/LLDBServerUtilities.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-server/LLDBServerUtilities.cpp?rev=367800&r1=367799&r2=367800&view=diff ============================================================================== --- lldb/trunk/tools/lldb-server/LLDBServerUtilities.cpp (original) +++ lldb/trunk/tools/lldb-server/LLDBServerUtilities.cpp Sun Aug 4 22:43:48 2019 @@ -24,7 +24,7 @@ static std::shared_ptr<raw_ostream> GetL if (!log_file.empty()) { std::error_code EC; std::shared_ptr<raw_ostream> stream_sp = std::make_shared<raw_fd_ostream>( - log_file, EC, sys::fs::F_Text | sys::fs::F_Append); + log_file, EC, sys::fs::OF_Text | sys::fs::OF_Append); if (!EC) return stream_sp; errs() << llvm::formatv( _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits