1 #ifndef DEADCODE_ELIMINATION_H 2 #define DEADCODE_ELIMINATION_H 7 #include "clang/AST/RecursiveASTVisitor.h" 29 void Initialize(clang::ASTContext &Ctx);
38 :
public clang::RecursiveASTVisitor<DeadcodeElementCollectionVisitor> {
54 #endif // DEADCODE_ELIMINATION_H clang::SourceRange SourceRange
Definition: LocalReduction.cpp:23
clang::DeclGroupRef DeclGroupRef
Definition: LocalReduction.cpp:16
clang::SourceLocation SourceLocation
Definition: LocalReduction.cpp:24
Definition: DeadcodeElimination.h:37
clang::Stmt Stmt
Definition: LocalReduction.cpp:25
clang::LabelStmt LabelStmt
Definition: LocalReduction.cpp:21
std::map< clang::Decl *, clang::SourceRange > LocationMapping
Definition: DeadcodeElimination.h:25
clang::VarDecl VarDecl
Definition: LocalReduction.cpp:28
Definition: LocalReduction.h:66
Definition: DeadcodeElimination.h:49
DeadcodeElimination()
Definition: DeadcodeElimination.h:21
~DeadcodeElimination()
Definition: DeadcodeElimination.h:22
Represents a sound dead-code elimination phase.
Definition: DeadcodeElimination.h:17
std::vector< clang::SourceLocation > UnusedLocations
Definition: DeadcodeElimination.h:26
void removeUnusedElements()
Definition: DeadcodeElimination.cpp:77
DeadcodeElementCollectionVisitor(DeadcodeElimination *R)
Definition: DeadcodeElimination.h:40