Daniel Dunbar | 9b414d3 | 2010-06-15 17:48:49 +0000 | [diff] [blame] | 1 | //===--- FrontendActions.cpp ----------------------------------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
Argyrios Kyrtzidis | 98cabba | 2010-12-22 18:51:49 +0000 | [diff] [blame] | 10 | #include "clang/GR/FrontendActions.h" |
Daniel Dunbar | 9b414d3 | 2010-06-15 17:48:49 +0000 | [diff] [blame] | 11 | #include "clang/Frontend/CompilerInstance.h" |
Argyrios Kyrtzidis | 98cabba | 2010-12-22 18:51:49 +0000 | [diff] [blame] | 12 | #include "clang/GR/AnalysisConsumer.h" |
Daniel Dunbar | 9b414d3 | 2010-06-15 17:48:49 +0000 | [diff] [blame] | 13 | using namespace clang; |
Argyrios Kyrtzidis | 5a4f98f | 2010-12-22 18:53:20 +0000 | [diff] [blame] | 14 | using namespace GR; |
Daniel Dunbar | 9b414d3 | 2010-06-15 17:48:49 +0000 | [diff] [blame] | 15 | |
| 16 | ASTConsumer *AnalysisAction::CreateASTConsumer(CompilerInstance &CI, |
| 17 | llvm::StringRef InFile) { |
| 18 | return CreateAnalysisConsumer(CI.getPreprocessor(), |
| 19 | CI.getFrontendOpts().OutputFile, |
| 20 | CI.getAnalyzerOpts()); |
| 21 | } |
| 22 | |