#include "lldb/Interpreter/OptionValue.h"
#include "lldb/Host/FileSpec.h"
-#include "lldb/Host/TimeValue.h"
+#include "llvm/Support/Chrono.h"
namespace lldb_private {
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;
}
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;
};
#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"
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");
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)