Simplify code by using an equivalent template class.

llvm-svn: 92305
This commit is contained in:
Zhongxing Xu 2009-12-30 06:38:20 +00:00
parent 16bafa6f14
commit 7b8b4d70ef
1 changed files with 2 additions and 11 deletions

View File

@ -301,17 +301,8 @@ void TransferFuncs::VisitDeclStmt(DeclStmt* DS) {
//===----------------------------------------------------------------------===//
namespace {
struct Merge {
typedef StmtDeclBitVector_Types::ValTy ValTy;
void operator()(ValTy& Dst, const ValTy& Src) {
Dst.OrDeclBits(Src);
Dst.OrBlkExprBits(Src);
}
};
typedef DataflowSolver<LiveVariables, TransferFuncs, Merge> Solver;
typedef StmtDeclBitVector_Types::Union Merge;
typedef DataflowSolver<LiveVariables, TransferFuncs, Merge> Solver;
} // end anonymous namespace
//===----------------------------------------------------------------------===//