switch scciterator to use DenseMap instead of std::map
authorChris Lattner <sabre@nondot.org>
Tue, 15 Sep 2009 04:37:49 +0000 (04:37 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 15 Sep 2009 04:37:49 +0000 (04:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81834 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/SCCIterator.h

index c0c6ba2a63d6391778dddf568f975840ab66727e..db985b5ae1d228c894fddad0faf0daad1382baae 100644 (file)
@@ -22,7 +22,7 @@
 #define LLVM_ADT_SCCITERATOR_H
 
 #include "llvm/ADT/GraphTraits.h"
-#include <map>
+#include "llvm/ADT/DenseMap.h"
 #include <vector>
 
 namespace llvm {
@@ -48,7 +48,7 @@ class scc_iterator
   // visitNum is the global counter.
   // nodeVisitNumbers are per-node visit numbers, also used as DFS flags.
   unsigned visitNum;
-  std::map<NodeType *, unsigned> nodeVisitNumbers;
+  DenseMap<NodeType *, unsigned> nodeVisitNumbers;
 
   // SCCNodeStack - Stack holding nodes of the SCC.
   std::vector<NodeType *> SCCNodeStack;