summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriterDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-10-29 22:39:52 +0000
committerDouglas Gregor <dgregor@apple.com>2010-10-29 22:39:52 +0000
commitd4c5ed038cd8e2f71865efacd45c3c243ce44caf (patch)
treefe8144f93b6abbbce4679ebdde6e468d7b791096 /clang/lib/Serialization/ASTWriterDecl.cpp
parent96f54c9d3e9cd5495d2063d249f63e2d45de575a (diff)
downloadbcm5719-llvm-d4c5ed038cd8e2f71865efacd45c3c243ce44caf.tar.gz
bcm5719-llvm-d4c5ed038cd8e2f71865efacd45c3c243ce44caf.zip
Make the deserialization of C++ base class specifiers lazy, improving
the performance of C++ PCH and reducing stack depth in the reader. llvm-svn: 117732
Diffstat (limited to 'clang/lib/Serialization/ASTWriterDecl.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriterDecl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTWriterDecl.cpp b/clang/lib/Serialization/ASTWriterDecl.cpp
index 37c7765dc89..7d80f318566 100644
--- a/clang/lib/Serialization/ASTWriterDecl.cpp
+++ b/clang/lib/Serialization/ASTWriterDecl.cpp
@@ -1182,6 +1182,12 @@ void ASTWriter::WriteDecl(ASTContext &Context, Decl *D) {
// Flush any expressions that were written as part of this declaration.
FlushStmts();
+
+ // Flush C++ base specifiers, if there are any.
+ FlushCXXBaseSpecifiers();
+
+ // Flush any expressions that were written as part of the base specifiers.
+ FlushStmts();
// Note "external" declarations so that we can add them to a record in the
// AST file later.
OpenPOWER on IntegriCloud