From 18b885f66babff3a10451bc811ffc077d61ed8ee Mon Sep 17 00:00:00 2001 From: Qinkun Bao Date: Wed, 14 May 2025 21:02:57 -0400 Subject: Revert "[clang][modules] Timestamp-less validation API" (#139987) Reverts llvm/llvm-project#138983 --- clang/lib/Serialization/ModuleManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/lib/Serialization/ModuleManager.cpp') diff --git a/clang/lib/Serialization/ModuleManager.cpp b/clang/lib/Serialization/ModuleManager.cpp index 9fd7505..fa9533b 100644 --- a/clang/lib/Serialization/ModuleManager.cpp +++ b/clang/lib/Serialization/ModuleManager.cpp @@ -174,11 +174,11 @@ ModuleManager::addModule(StringRef FileName, ModuleKind Type, NewModule->Index = Chain.size(); NewModule->FileName = FileName.str(); NewModule->ImportLoc = ImportLoc; - NewModule->InputFilesValidated = false; + NewModule->InputFilesValidationTimestamp = 0; if (NewModule->Kind == MK_ImplicitModule) - NewModule->InputFilesValidated = - ModCache->isMarkedUpToDate(NewModule->FileName); + NewModule->InputFilesValidationTimestamp = + ModCache->getModuleTimestamp(NewModule->FileName); // Load the contents of the module if (std::unique_ptr Buffer = lookupBuffer(FileName)) { -- cgit v1.1