]> granicus.if.org Git - clang/commit
Only perform checking of the predefines buffer when loading a
authorDouglas Gregor <dgregor@apple.com>
Fri, 2 Dec 2011 21:56:05 +0000 (21:56 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 2 Dec 2011 21:56:05 +0000 (21:56 +0000)
commit6236a29f5082d4736c4593ca1a04595037db1685
tree3805b63ef0fe94b9fa29151a22419b33c7404faf
parent377cc6e3e8a6d9d0c90a315d29ce84836383d059
Only perform checking of the predefines buffer when loading a
precompiled header. Previously, we were trying to gather predefines
buffers from all kinds of AST files (which doesn't make sense) and
were performing some validation when AST files were loaded as main
files.

With these tweaks, using PCH files that import modules no longer fails
immediately (due to mismatched predefines buffers). However, module
visibility is lost, so this feature does not yet work.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145709 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Serialization/ASTReader.cpp
test/Modules/diamond-pch.c [new file with mode: 0644]