Make changes to PCHReader to allow reading a PCH file without having a pre-initialize...
commite3f4bda53544f2a5a8fe31ab7c86bed1e4e66b01
authorArgiris Kirtzidis <akyrtzi@gmail.com>
Fri, 19 Jun 2009 00:03:23 +0000 (19 00:03 +0000)
committerArgiris Kirtzidis <akyrtzi@gmail.com>
Fri, 19 Jun 2009 00:03:23 +0000 (19 00:03 +0000)
tree1d0a7c9fa83ba4297e4c504d24db80d350e760e5
parentc0cccca3b053c9e86800f7f990ec609e4546bcb2
Make changes to PCHReader to allow reading a PCH file without having a pre-initialized Preprocessor.

-Introduce 'PCHReaderListener' which is an abstract interface for getting various information from the PCHReader.
-If PCHReader is constructed without a Preprocessor, it can still load the file and invoke the callbacks of PCHReaderListener.
-If PCHReader is constructed with an initialized Preprocessor, PCHValidator is used as a PCHReaderListener to validate the contents of the PCH file against the given Preprocessor.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73741 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/PCHReader.h
lib/Frontend/PCHReader.cpp