summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-02-25 01:45:32 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-02-25 01:45:32 +0000
commitc4c34e27223a5696ffe2c9ca6f7cdaa8b13cc45d (patch)
tree29bc167f4f14ba9a710fb4b3a166a26a049d9580 /clang/lib/Serialization/ASTWriter.cpp
parent8b2165a94573fc296773e376ddbb7652c141ce3f (diff)
downloadbcm5719-llvm-c4c34e27223a5696ffe2c9ca6f7cdaa8b13cc45d.tar.gz
bcm5719-llvm-c4c34e27223a5696ffe2c9ca6f7cdaa8b13cc45d.zip
Remove slow and apparently pointless updating of all identifiers at the start
of writing out an AST file. llvm-svn: 230428
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriter.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index 9fef9855666..3af2a4003ba 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -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()) {
OpenPOWER on IntegriCloud