diff options
author | Pavel Labath <labath@google.com> | 2016-11-09 14:33:22 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-11-09 14:33:22 +0000 |
commit | e877baa854f51a9f6a4ca70ce92feb7b30aa13c1 (patch) | |
tree | c621a9e4ea2ec911501ef8ac29c072e142762368 /lldb/source/Interpreter/OptionValueFileSpec.cpp | |
parent | 601d7eb11a14dea8d6d2fba2e57eec73006742d1 (diff) | |
download | bcm5719-llvm-e877baa854f51a9f6a4ca70ce92feb7b30aa13c1.tar.gz bcm5719-llvm-e877baa854f51a9f6a4ca70ce92feb7b30aa13c1.zip |
Remove TimeValue usage from lldb/Interpreter
llvm-svn: 286369
Diffstat (limited to 'lldb/source/Interpreter/OptionValueFileSpec.cpp')
-rw-r--r-- | lldb/source/Interpreter/OptionValueFileSpec.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Interpreter/OptionValueFileSpec.cpp b/lldb/source/Interpreter/OptionValueFileSpec.cpp index 479d57eb27f..f5c292d6f49 100644 --- a/lldb/source/Interpreter/OptionValueFileSpec.cpp +++ b/lldb/source/Interpreter/OptionValueFileSpec.cpp @@ -79,7 +79,7 @@ Error OptionValueFileSpec::SetValueFromString(llvm::StringRef value, 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(CommandInterpreter &interpreter, 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) |