blob: 2097657ca3db8cffd3c3e2f4bd35ffac0e04b4f9 [file] [log] [blame]
Daniel Dunbar9b414d32010-06-15 17:48:49 +00001//===--- 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 Kyrtzidis98cabba2010-12-22 18:51:49 +000010#include "clang/GR/FrontendActions.h"
Daniel Dunbar9b414d32010-06-15 17:48:49 +000011#include "clang/Frontend/CompilerInstance.h"
Argyrios Kyrtzidis98cabba2010-12-22 18:51:49 +000012#include "clang/GR/AnalysisConsumer.h"
Daniel Dunbar9b414d32010-06-15 17:48:49 +000013using namespace clang;
Argyrios Kyrtzidis5a4f98f2010-12-22 18:53:20 +000014using namespace GR;
Daniel Dunbar9b414d32010-06-15 17:48:49 +000015
16ASTConsumer *AnalysisAction::CreateASTConsumer(CompilerInstance &CI,
17 llvm::StringRef InFile) {
18 return CreateAnalysisConsumer(CI.getPreprocessor(),
19 CI.getFrontendOpts().OutputFile,
20 CI.getAnalyzerOpts());
21}
22