Remove TimeValue usage from lldb/Core. NFC.

llvm-svn: 286366
diff --git a/lldb/source/Core/SourceManager.cpp b/lldb/source/Core/SourceManager.cpp
index 0959cab..603fe57 100644
--- a/lldb/source/Core/SourceManager.cpp
+++ b/lldb/source/Core/SourceManager.cpp
@@ -346,7 +346,7 @@
 
 void SourceManager::File::CommonInitializer(const FileSpec &file_spec,
                                             Target *target) {
-  if (!m_mod_time.IsValid()) {
+  if (m_mod_time == llvm::sys::TimePoint<>()) {
     if (target) {
       m_source_map_mod_id = target->GetSourcePathMap().GetModificationID();
 
@@ -403,7 +403,7 @@
     }
   }
 
-  if (m_mod_time.IsValid())
+  if (m_mod_time != llvm::sys::TimePoint<>())
     m_data_sp = m_file_spec.ReadFileContents();
 }
 
@@ -477,9 +477,10 @@
   // TODO: use host API to sign up for file modifications to anything in our
   // source cache and only update when we determine a file has been updated.
   // For now we check each time we want to display info for the file.
-  TimeValue curr_mod_time(FileSystem::GetModificationTime(m_file_spec));
+  auto curr_mod_time = FileSystem::GetModificationTime(m_file_spec);
 
-  if (curr_mod_time.IsValid() && m_mod_time != curr_mod_time) {
+  if (curr_mod_time != llvm::sys::TimePoint<>() &&
+      m_mod_time != curr_mod_time) {
     m_mod_time = curr_mod_time;
     m_data_sp = m_file_spec.ReadFileContents();
     m_offsets.clear();
@@ -602,18 +603,9 @@
 
 bool lldb_private::operator==(const SourceManager::File &lhs,
                               const SourceManager::File &rhs) {
-  if (lhs.m_file_spec == rhs.m_file_spec) {
-    if (lhs.m_mod_time.IsValid()) {
-      if (rhs.m_mod_time.IsValid())
-        return lhs.m_mod_time == rhs.m_mod_time;
-      else
-        return false;
-    } else if (rhs.m_mod_time.IsValid())
-      return false;
-    else
-      return true;
-  } else
+  if (lhs.m_file_spec != rhs.m_file_spec)
     return false;
+  return lhs.m_mod_time == rhs.m_mod_time;
 }
 
 bool SourceManager::File::CalculateLineOffsets(uint32_t line) {