[llvm-commits] [llvm] r81834 - /llvm/trunk/include/llvm/ADT/SCCIterator.h

Chris Lattner sabre at nondot.org
Mon Sep 14 21:37:49 PDT 2009


Author: lattner
Date: Mon Sep 14 23:37:49 2009
New Revision: 81834

URL: http://llvm.org/viewvc/llvm-project?rev=81834&view=rev
Log:
switch scciterator to use DenseMap instead of std::map

Modified:
    llvm/trunk/include/llvm/ADT/SCCIterator.h

Modified: llvm/trunk/include/llvm/ADT/SCCIterator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/SCCIterator.h?rev=81834&r1=81833&r2=81834&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/SCCIterator.h (original)
+++ llvm/trunk/include/llvm/ADT/SCCIterator.h Mon Sep 14 23:37:49 2009
@@ -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 @@
   // 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;





More information about the llvm-commits mailing list