summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ModuleList.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2016-11-09 14:04:08 +0000
committerPavel Labath <labath@google.com>2016-11-09 14:04:08 +0000
commit3dc342eb0c8bf5ba512a771add6d934b317c4941 (patch)
treef677a6eeca427ed6f0a5709a3ddbf88476880a97 /lldb/source/Core/ModuleList.cpp
parentddbe0f51382dcc57eec973149289b79929f3cd69 (diff)
downloadbcm5719-llvm-3dc342eb0c8bf5ba512a771add6d934b317c4941.tar.gz
bcm5719-llvm-3dc342eb0c8bf5ba512a771add6d934b317c4941.zip
Remove TimeValue usage from lldb/Core. NFC.
llvm-svn: 286366
Diffstat (limited to 'lldb/source/Core/ModuleList.cpp')
-rw-r--r--lldb/source/Core/ModuleList.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Core/ModuleList.cpp b/lldb/source/Core/ModuleList.cpp
index e6e64900908..b980e15c0b3 100644
--- a/lldb/source/Core/ModuleList.cpp
+++ b/lldb/source/Core/ModuleList.cpp
@@ -856,9 +856,9 @@ Error ModuleList::GetSharedModule(const ModuleSpec &module_spec,
// If we didn't have a UUID in mind when looking for the object file,
// then we should make sure the modification time hasn't changed!
if (platform_module_spec.GetUUIDPtr() == nullptr) {
- TimeValue file_spec_mod_time(FileSystem::GetModificationTime(
- located_binary_modulespec.GetFileSpec()));
- if (file_spec_mod_time.IsValid()) {
+ auto file_spec_mod_time = FileSystem::GetModificationTime(
+ located_binary_modulespec.GetFileSpec());
+ if (file_spec_mod_time != llvm::sys::TimePoint<>()) {
if (file_spec_mod_time != module_sp->GetModificationTime()) {
if (old_module_sp_ptr)
*old_module_sp_ptr = module_sp;
OpenPOWER on IntegriCloud