diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-07-28 00:39:29 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-07-28 00:39:29 +0000 |
commit | b7098a38b39758316d78c1a16f57227c5d2064ac (patch) | |
tree | 06b71ab2c86bd6df2230f47cff443308c7ccd831 /clang/lib/Serialization/ASTWriter.cpp | |
parent | 246eb96c8a2b4d00646a82529bc5a1c43af803d1 (diff) | |
download | bcm5719-llvm-b7098a38b39758316d78c1a16f57227c5d2064ac.tar.gz bcm5719-llvm-b7098a38b39758316d78c1a16f57227c5d2064ac.zip |
Switch Sema::ExtVectorDecls over to LazyVector.
llvm-svn: 136314
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTWriter.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp index 44cf99fe0bc..3cc2dae4fc6 100644 --- a/clang/lib/Serialization/ASTWriter.cpp +++ b/clang/lib/Serialization/ASTWriter.cpp @@ -2852,8 +2852,7 @@ void ASTWriter::WriteASTCore(Sema &SemaRef, MemorizeStatCalls *StatCalls, // Build a record containing all of the ext_vector declarations. RecordData ExtVectorDecls; - for (unsigned I = 0, N = SemaRef.ExtVectorDecls.size(); I != N; ++I) - AddDeclRef(SemaRef.ExtVectorDecls[I], ExtVectorDecls); + AddLazyVectorDecls(*this, SemaRef.ExtVectorDecls, ExtVectorDecls); // Build a record containing all of the VTable uses information. RecordData VTableUses; @@ -3121,10 +3120,7 @@ void ASTWriter::WriteASTChain(Sema &SemaRef, MemorizeStatCalls *StatCalls, // Build a record containing all of the ext_vector declarations. RecordData ExtVectorDecls; - for (unsigned I = 0, N = SemaRef.ExtVectorDecls.size(); I != N; ++I) { - if (SemaRef.ExtVectorDecls[I]->getPCHLevel() == 0) - AddDeclRef(SemaRef.ExtVectorDecls[I], ExtVectorDecls); - } + AddLazyVectorDecls(*this, SemaRef.ExtVectorDecls, ExtVectorDecls); // Build a record containing all of the VTable uses information. // We write everything here, because it's too hard to determine whether |