diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-14 02:47:17 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-14 02:47:17 +0000 |
commit | 56d9c293dba1eec7a6449e93cf71ca2ec4319e02 (patch) | |
tree | c1af5fc25b396aedb1d9895711010417c805ec5b /clang/lib/Frontend/CompilerInstance.cpp | |
parent | 81132465d32de47ef1a55db33f1bb5107dd4c032 (diff) | |
download | bcm5719-llvm-56d9c293dba1eec7a6449e93cf71ca2ec4319e02.tar.gz bcm5719-llvm-56d9c293dba1eec7a6449e93cf71ca2ec4319e02.zip |
Add ASTConsumer to CompilerInstance.
llvm-svn: 88743
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 2755a5a56d9..0352c454604 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -8,6 +8,7 @@ //===----------------------------------------------------------------------===// #include "clang/Frontend/CompilerInstance.h" +#include "clang/AST/ASTConsumer.h" #include "clang/AST/ASTContext.h" #include "clang/Basic/Diagnostic.h" #include "clang/Basic/FileManager.h" @@ -67,6 +68,10 @@ void CompilerInstance::setASTContext(ASTContext *Value) { Context.reset(Value); } +void CompilerInstance::setASTConsumer(ASTConsumer *Value) { + Consumer.reset(Value); +} + void CompilerInstance::setCodeCompletionConsumer(CodeCompleteConsumer *Value) { CompletionConsumer.reset(Value); } |