diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-14 23:45:08 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-14 23:45:08 +0000 |
commit | 85b2a6a43056395f83a567e45591e797b98e4b88 (patch) | |
tree | 85a6670d5860c9b38d7728645451fe2ed591628f /clang/lib/Frontend/FrontendActions.cpp | |
parent | 6f4f3612cc5df8bfd71ebc715d344006b4853ba6 (diff) | |
download | bcm5719-llvm-85b2a6a43056395f83a567e45591e797b98e4b88.tar.gz bcm5719-llvm-85b2a6a43056395f83a567e45591e797b98e4b88.zip |
Add a callback interface that allows interested parties to get notified whenever PCHReader deserializes a type or decl (and possibly other things in the future). Have PCHWriter implement these callbacks as noops and register to receive them if we're chaining PCHs. This will allow PCHWriter to track the IDs of these things, which it needs to write the dependent files. WIP
llvm-svn: 108383
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendActions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp index 670b6b8cead..3a53dee8061 100644 --- a/clang/lib/Frontend/FrontendActions.cpp +++ b/clang/lib/Frontend/FrontendActions.cpp @@ -80,7 +80,7 @@ ASTConsumer *GeneratePCHAction::CreateASTConsumer(CompilerInstance &CI, if (!OS) return 0; - const PCHReader *Chain = CI.getInvocation().getFrontendOpts().ChainedPCH ? + PCHReader *Chain = CI.getInvocation().getFrontendOpts().ChainedPCH ? CI.getPCHReader() : 0; const char *isysroot = CI.getFrontendOpts().RelocatablePCH ? Sysroot.c_str() : 0; |