Revert r185852.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185861 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Manman Ren
2013-07-08 20:27:34 +00:00
parent e1e7310749
commit 6afede522e
4 changed files with 9 additions and 18 deletions

View File

@@ -760,7 +760,15 @@ private:
}
static inline bool classof(const MapHNode *) { return true; }
typedef llvm::DenseMap<StringRef, HNode*> NameToNode;
struct StrMappingInfo {
static StringRef getEmptyKey() { return StringRef(); }
static StringRef getTombstoneKey() { return StringRef(" ", 0); }
static unsigned getHashValue(StringRef const val) {
return llvm::HashString(val); }
static bool isEqual(StringRef const lhs,
StringRef const rhs) { return lhs.equals(rhs); }
};
typedef llvm::DenseMap<StringRef, HNode*, StrMappingInfo> NameToNode;
bool isValidKey(StringRef key);