forked from OSchip/llvm-project
Simplify code by using an equivalent template class.
llvm-svn: 92305
This commit is contained in:
parent
16bafa6f14
commit
7b8b4d70ef
|
@ -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
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue