diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-08-24 21:56:08 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-08-24 21:56:08 +0000 |
commit | c266de97e269c3747ffc2d122fe53185b541cb37 (patch) | |
tree | 70a14228156575261cd16cc68a5472d61e1d7700 /lib/Serialization/ASTWriter.cpp | |
parent | e94cb98d39fcd2cca68ab1b0d71f9a16b5e934c1 (diff) |
Don't force the complete deserialization of the visible-declarations
table when serializing an AST file. This was a holdover from the days
before chained PCH, and is a complete waste of time and storage
now. It's a good thing it's useless, because I have no idea how I
would have implemented MaterializeVisibleDecls efficiently in the
presence of modules.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138496 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTWriter.cpp')
-rw-r--r-- | lib/Serialization/ASTWriter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Serialization/ASTWriter.cpp b/lib/Serialization/ASTWriter.cpp index acd05006c3..79703216f5 100644 --- a/lib/Serialization/ASTWriter.cpp +++ b/lib/Serialization/ASTWriter.cpp @@ -2608,9 +2608,7 @@ uint64_t ASTWriter::WriteDeclContextVisibleBlock(ASTContext &Context, return 0; // Force the DeclContext to build a its name-lookup table. - if (DC->hasExternalVisibleStorage()) - DC->MaterializeVisibleDeclsFromExternalStorage(); - else + if (!DC->hasExternalVisibleStorage()) DC->lookup(DeclarationName()); // Serialize the contents of the mapping used for lookup. Note that, |