Remove building with NOCRYPTO option
[minix.git] / external / bsd / llvm / dist / clang / lib / StaticAnalyzer / Frontend / FrontendActions.cpp
blobb33608042ce3d21cdcab44e67b99ec44381faa05
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 //===----------------------------------------------------------------------===//
10 #include "clang/StaticAnalyzer/Frontend/FrontendActions.h"
11 #include "clang/StaticAnalyzer/Frontend/AnalysisConsumer.h"
12 #include "clang/StaticAnalyzer/Frontend/ModelConsumer.h"
13 using namespace clang;
14 using namespace ento;
16 std::unique_ptr<ASTConsumer>
17 AnalysisAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {
18 return CreateAnalysisConsumer(CI);
21 ParseModelFileAction::ParseModelFileAction(llvm::StringMap<Stmt *> &Bodies)
22 : Bodies(Bodies) {}
24 std::unique_ptr<ASTConsumer>
25 ParseModelFileAction::CreateASTConsumer(CompilerInstance &CI,
26 StringRef InFile) {
27 return llvm::make_unique<ModelConsumer>(Bodies);