Use SmallPtrSet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35388 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2007-03-27 20:50:46 +00:00
parent 054fa8fddb
commit 2ad28e6c48

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 {