diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-03-14 04:45:00 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-03-14 04:45:00 +0000 |
| commit | 59852367b40855820839277cba48aac73a8446bc (patch) | |
| tree | 647fb76641bf43551d7f05532e6c6f076ecde25c /clang/lib/Serialization/ASTWriter.cpp | |
| parent | ffb3558beb087304e3173e5076c56f634f76e5eb (diff) | |
| download | bcm5719-llvm-59852367b40855820839277cba48aac73a8446bc.tar.gz bcm5719-llvm-59852367b40855820839277cba48aac73a8446bc.zip | |
[modules] Don't write the UnusedFileScopedDecls vector to the module file.
llvm-svn: 177001
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
| -rw-r--r-- | clang/lib/Serialization/ASTWriter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp index 58a196d9a1a..10a80444a26 100644 --- a/clang/lib/Serialization/ASTWriter.cpp +++ b/clang/lib/Serialization/ASTWriter.cpp @@ -3531,8 +3531,9 @@ void ASTWriter::WriteASTCore(Sema &SemaRef, // 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. |

