Use SmallPtrSet.

llvm-svn: 35388
This commit is contained in:
Devang Patel 2007-03-27 20:50:46 +00:00
parent 62574103d1
commit 5a1bd4045d
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@
#include "llvm/Assembly/Writer.h"
#include "llvm/ADT/DepthFirstIterator.h"
#include "llvm/ADT/SetOperations.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/Instructions.h"
#include <algorithm>
using namespace llvm;
@ -462,7 +463,7 @@ DominanceFrontier::calculate(const DominatorTree &DT,
DomSetType *Result = NULL;
std::vector<DFCalculateWorkObject> workList;
std::set<BasicBlock *> visited;
SmallPtrSet<BasicBlock *, 32> visited;
workList.push_back(DFCalculateWorkObject(BB, NULL, Node, NULL));
do {