]> granicus.if.org Git - clang/commit
Teach ASTReader how to read only the Preprocessor state from an AST file, not the...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 29 Jun 2017 23:23:46 +0000 (23:23 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 29 Jun 2017 23:23:46 +0000 (23:23 +0000)
commit9f28442d72ed8db4ce56d163e9ea2355cf7cb4ae
tree1ff185037d33207158f2a19a7aea2a88126ca271
parentfe7b37a8ff38f40535f98de2e7b72bdd185cd1ae
Teach ASTReader how to read only the Preprocessor state from an AST file, not the ASTContext state.

We use this when running a preprocessor-only action on an AST file in order to
avoid paying the runtime cost of loading the extra information.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306760 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/clang/Frontend/ASTUnit.h
include/clang/Serialization/ASTReader.h
lib/Frontend/ASTMerge.cpp
lib/Frontend/ASTUnit.cpp
lib/Frontend/ChainedIncludesSource.cpp
lib/Frontend/CompilerInstance.cpp
lib/Frontend/FrontendAction.cpp
lib/Frontend/FrontendActions.cpp
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTReaderStmt.cpp
tools/c-index-test/core_main.cpp
tools/libclang/CIndex.cpp