Use StringMap instead of std::map<std::string, SDNode*>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52641 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-06-23 21:08:32 +00:00
parent 84701836bf
commit 4b84086e89

View File

@ -16,6 +16,7 @@
#define LLVM_CODEGEN_SELECTIONDAG_H #define LLVM_CODEGEN_SELECTIONDAG_H
#include "llvm/ADT/FoldingSet.h" #include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/ilist.h" #include "llvm/ADT/ilist.h"
#include "llvm/CodeGen/SelectionDAGNodes.h" #include "llvm/CodeGen/SelectionDAGNodes.h"
@ -621,9 +622,9 @@ private:
std::vector<SDNode*> ValueTypeNodes; std::vector<SDNode*> ValueTypeNodes;
std::map<MVT, SDNode*, MVT::compareRawBits> ExtendedValueTypeNodes; std::map<MVT, SDNode*, MVT::compareRawBits> ExtendedValueTypeNodes;
std::map<std::string, SDNode*> ExternalSymbols; StringMap<SDNode*> ExternalSymbols;
std::map<std::string, SDNode*> TargetExternalSymbols; StringMap<SDNode*> TargetExternalSymbols;
std::map<std::string, StringSDNode*> StringNodes; StringMap<StringSDNode*> StringNodes;
}; };
template <> struct GraphTraits<SelectionDAG*> : public GraphTraits<SDNode*> { template <> struct GraphTraits<SelectionDAG*> : public GraphTraits<SDNode*> {