blob: 09f1423e65916ef94c9d0cd2496c2fce4cdc7970 [file] [log] [blame]
Chris Lattner4b009652007-07-25 00:24:17 +00001//===--- ASTStreamers.h - ASTStreamer Drivers -------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file was developed by Bill Wendling and is distributed under the
6// University of Illinois Open Source License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// AST Streamers.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef DRIVER_ASTSTREAMERS_H_
15#define DRIVER_ASTSTREAMERS_H_
16
17namespace clang {
18
19class Preprocessor;
20class FunctionDecl;
21class TypedefDecl;
Chris Lattner1cc01712007-09-15 22:56:56 +000022class ASTConsumer;
Chris Lattner4b009652007-07-25 00:24:17 +000023
Chris Lattnerb73abd52007-09-15 23:02:28 +000024ASTConsumer *CreateASTPrinter();
25ASTConsumer *CreateASTDumper();
Ted Kremenekb3bb91b2007-08-29 21:56:09 +000026
27void DumpCFGs(Preprocessor &PP, unsigned MainFileID,
28 bool Stats, bool use_graphviz = false);
Ted Kremenekaa04c512007-09-06 00:17:54 +000029
30void AnalyzeLiveVariables(Preprocessor &PP, unsigned MainFileID);
Chris Lattner4b009652007-07-25 00:24:17 +000031
Ted Kremeneke805c4a2007-09-06 23:00:42 +000032void RunDeadStoresCheck(Preprocessor &PP, unsigned MainFileID, bool Stats);
33
Chris Lattner4b009652007-07-25 00:24:17 +000034} // end clang namespace
35
36#endif