diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-10-24 17:26:36 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-10-24 17:26:36 +0000 |
commit | 7b90340c9c7d07aef4e301e72b5e8a30d5f4f0c8 (patch) | |
tree | 534ddbf567967924e8defe105d20f1d749813927 /lib/Frontend/FrontendAction.cpp | |
parent | 134db1fff5653c164ef41c898943521c49f6ebab (diff) |
Put the mechanism in place to track modifications in an AST entity that were committed after
its initial creation/deserialization and store the changes in a chained PCH.
The idea is that the AST entities call methods on the ASTMutationListener to give notifications
of changes; the PCHWriter implements the ASTMutationListener interface and stores the incremental changes
of the updated entity. WIP
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117235 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/FrontendAction.cpp')
-rw-r--r-- | lib/Frontend/FrontendAction.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Frontend/FrontendAction.cpp b/lib/Frontend/FrontendAction.cpp index 97188919f9..26ae4b1f7f 100644 --- a/lib/Frontend/FrontendAction.cpp +++ b/lib/Frontend/FrontendAction.cpp @@ -167,6 +167,8 @@ bool FrontendAction::BeginSourceFile(CompilerInstance &CI, llvm::OwningPtr<ASTConsumer> Consumer(CreateASTConsumer(CI, Filename)); + CI.getASTContext().setASTMutationListener(Consumer->GetASTMutationListener()); + /// Use PCH? if (!CI.getPreprocessorOpts().ImplicitPCHInclude.empty()) { assert(hasPCHSupport() && "This action does not have PCH support!"); |