diff options
author | Pavel Labath <labath@google.com> | 2016-11-09 09:59:18 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-11-09 09:59:18 +0000 |
commit | 7e2cfbf0b7001cc49f918e0d1cfe94b527764fd3 (patch) | |
tree | d2e76aa452b3f86f7d26feabf0f583807df92fb8 /lldb/source/Core/Module.cpp | |
parent | 25143dfd48ea7f52d3066ff73a6c99f0f1bae1da (diff) | |
download | bcm5719-llvm-7e2cfbf0b7001cc49f918e0d1cfe94b527764fd3.tar.gz bcm5719-llvm-7e2cfbf0b7001cc49f918e0d1cfe94b527764fd3.zip |
Remove TimeValue usage from Core/Module
Summary:
The only interesting part here is that TimePoint and TimeValue have different
natural string representations, which affects "target modules list" output. It
is now "2016-07-09 04:02:21.000000000", whereas previously in was
"Sat Jul 9 04:02:21 2016". I wanted to check if we're OK with that.
Reviewers: clayborg
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D26275
llvm-svn: 286349
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r-- | lldb/source/Core/Module.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index b1a656959b8..9ce03d6d4de 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -229,10 +229,11 @@ Module::Module(const ModuleSpec &module_spec) Module::Module(const FileSpec &file_spec, const ArchSpec &arch, const ConstString *object_name, lldb::offset_t object_offset, - const TimeValue *object_mod_time_ptr) + const llvm::sys::TimePoint<> &object_mod_time) : m_mod_time(FileSystem::GetModificationTime(file_spec)), m_arch(arch), m_file(file_spec), m_object_offset(object_offset), - m_file_has_changed(false), m_first_file_changed_log(false) { + m_object_mod_time(object_mod_time), m_file_has_changed(false), + m_first_file_changed_log(false) { // Scope for locker below... { std::lock_guard<std::recursive_mutex> guard( @@ -243,9 +244,6 @@ Module::Module(const FileSpec &file_spec, const ArchSpec &arch, if (object_name) m_object_name = *object_name; - if (object_mod_time_ptr) - m_object_mod_time = *object_mod_time_ptr; - Log *log(lldb_private::GetLogIfAnyCategoriesSet(LIBLLDB_LOG_OBJECT | LIBLLDB_LOG_MODULES)); if (log != nullptr) |