]> granicus.if.org Git - clang/commitdiff
Remove slow and apparently pointless updating of all identifiers at the start
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 25 Feb 2015 01:45:32 +0000 (01:45 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 25 Feb 2015 01:45:32 +0000 (01:45 +0000)
of writing out an AST file.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@230428 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Serialization/ASTWriter.cpp

index 9fef9855666d0d342cb6b4d4a82b16a2135fcdca..3af2a4003ba3857e3415a145bbcc302b74e32612 100644 (file)
@@ -4266,23 +4266,6 @@ void ASTWriter::WriteASTCore(Sema &SemaRef,
       getIdentifierRef(&Table.get(BuiltinNames[I]));
   }
 
-  // If there are any out-of-date identifiers, bring them up to date.
-  if (ExternalPreprocessorSource *ExtSource = PP.getExternalSource()) {
-    // Find out-of-date identifiers.
-    SmallVector<IdentifierInfo *, 4> OutOfDate;
-    for (IdentifierTable::iterator ID = PP.getIdentifierTable().begin(),
-                                IDEnd = PP.getIdentifierTable().end();
-         ID != IDEnd; ++ID) {
-      if (ID->second->isOutOfDate())
-        OutOfDate.push_back(ID->second);
-    }
-
-    // Update the out-of-date identifiers.
-    for (unsigned I = 0, N = OutOfDate.size(); I != N; ++I) {
-      ExtSource->updateOutOfDateIdentifier(*OutOfDate[I]);
-    }
-  }
-
   // If we saw any DeclContext updates before we started writing the AST file,
   // make sure all visible decls in those DeclContexts are written out.
   if (!UpdatedDeclContexts.empty()) {