Author: labath Date: Wed Nov 9 08:33:22 2016 New Revision: 286369 URL: http://llvm.org/viewvc/llvm-project?rev=286369&view=rev Log: Remove TimeValue usage from lldb/Interpreter
Modified: lldb/trunk/include/lldb/Interpreter/OptionValueFileSpec.h lldb/trunk/source/Commands/CommandObjectTarget.cpp lldb/trunk/source/Interpreter/OptionValueFileSpec.cpp Modified: lldb/trunk/include/lldb/Interpreter/OptionValueFileSpec.h URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Interpreter/OptionValueFileSpec.h?rev=286369&r1=286368&r2=286369&view=diff ============================================================================== --- lldb/trunk/include/lldb/Interpreter/OptionValueFileSpec.h (original) +++ lldb/trunk/include/lldb/Interpreter/OptionValueFileSpec.h Wed Nov 9 08:33:22 2016 @@ -13,7 +13,7 @@ #include "lldb/Interpreter/OptionValue.h" #include "lldb/Host/FileSpec.h" -#include "lldb/Host/TimeValue.h" +#include "llvm/Support/Chrono.h" namespace lldb_private { @@ -48,7 +48,7 @@ public: m_current_value = m_default_value; m_value_was_set = false; m_data_sp.reset(); - m_data_mod_time.Clear(); + m_data_mod_time = llvm::sys::TimePoint<>(); return true; } @@ -85,7 +85,7 @@ protected: FileSpec m_current_value; FileSpec m_default_value; lldb::DataBufferSP m_data_sp; - TimeValue m_data_mod_time; + llvm::sys::TimePoint<> m_data_mod_time; uint32_t m_completion_mask; bool m_resolve; }; Modified: lldb/trunk/source/Commands/CommandObjectTarget.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectTarget.cpp?rev=286369&r1=286368&r2=286369&view=diff ============================================================================== --- lldb/trunk/source/Commands/CommandObjectTarget.cpp (original) +++ lldb/trunk/source/Commands/CommandObjectTarget.cpp Wed Nov 9 08:33:22 2016 @@ -21,6 +21,7 @@ #include "lldb/DataFormatters/ValueObjectPrinter.h" #include "lldb/Host/StringConvert.h" #include "lldb/Host/Symbols.h" +#include "lldb/Host/TimeValue.h" #include "lldb/Interpreter/Args.h" #include "lldb/Interpreter/CommandInterpreter.h" #include "lldb/Interpreter/CommandReturnObject.h" Modified: lldb/trunk/source/Interpreter/OptionValueFileSpec.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/OptionValueFileSpec.cpp?rev=286369&r1=286368&r2=286369&view=diff ============================================================================== --- lldb/trunk/source/Interpreter/OptionValueFileSpec.cpp (original) +++ lldb/trunk/source/Interpreter/OptionValueFileSpec.cpp Wed Nov 9 08:33:22 2016 @@ -79,7 +79,7 @@ Error OptionValueFileSpec::SetValueFromS m_value_was_set = true; m_current_value.SetFile(value.str(), m_resolve); m_data_sp.reset(); - m_data_mod_time.Clear(); + m_data_mod_time = llvm::sys::TimePoint<>(); NotifyValueChanged(); } else { error.SetErrorString("invalid value string"); @@ -117,8 +117,7 @@ size_t OptionValueFileSpec::AutoComplete const lldb::DataBufferSP & OptionValueFileSpec::GetFileContents(bool null_terminate) { if (m_current_value) { - const TimeValue file_mod_time = - FileSystem::GetModificationTime(m_current_value); + const auto file_mod_time = FileSystem::GetModificationTime(m_current_value); if (m_data_sp && m_data_mod_time == file_mod_time) return m_data_sp; if (null_terminate) _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits