r177001 - [modules] Don't write the UnusedFileScopedDecls vector to the module file.
Argyrios Kyrtzidis
akyrtzi at gmail.com
Wed Mar 13 21:45:00 PDT 2013
Author: akirtzidis
Date: Wed Mar 13 23:45:00 2013
New Revision: 177001
URL: http://llvm.org/viewvc/llvm-project?rev=177001&view=rev
Log:
[modules] Don't write the UnusedFileScopedDecls vector to the module file.
Modified:
cfe/trunk/lib/Serialization/ASTWriter.cpp
Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriter.cpp?rev=177001&r1=177000&r2=177001&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriter.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriter.cpp Wed Mar 13 23:45:00 2013
@@ -3531,8 +3531,9 @@ void ASTWriter::WriteASTCore(Sema &SemaR
// Build a record containing all of the file scoped decls in this file.
RecordData UnusedFileScopedDecls;
- AddLazyVectorDecls(*this, SemaRef.UnusedFileScopedDecls,
- UnusedFileScopedDecls);
+ if (!isModule)
+ AddLazyVectorDecls(*this, SemaRef.UnusedFileScopedDecls,
+ UnusedFileScopedDecls);
// Build a record containing all of the delegating constructors we still need
// to resolve.
More information about the cfe-commits
mailing list