diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-06-24 10:24:30 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-06-24 10:24:30 +0000 |
commit | c026e39451ac7def6ec87109ed92cf4b42f957c9 (patch) | |
tree | 6cc25b7a538ea18c39c1c6c9290797598dcb2ec6 /clang/lib/Basic/VirtualFileSystem.cpp | |
parent | d7a32ea4b86c04ba0c4736f803527eb393a40867 (diff) | |
download | bcm5719-llvm-c026e39451ac7def6ec87109ed92cf4b42f957c9.tar.gz bcm5719-llvm-c026e39451ac7def6ec87109ed92cf4b42f957c9.zip |
Remove a limited and somewhat questionable DenseMapInfo specialization
for StringRef now that the core DenseMap library provides this facility.
llvm-svn: 240530
Diffstat (limited to 'clang/lib/Basic/VirtualFileSystem.cpp')
-rw-r--r-- | clang/lib/Basic/VirtualFileSystem.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/clang/lib/Basic/VirtualFileSystem.cpp b/clang/lib/Basic/VirtualFileSystem.cpp index 8a882e13f7a..a36102cf0f5 100644 --- a/clang/lib/Basic/VirtualFileSystem.cpp +++ b/clang/lib/Basic/VirtualFileSystem.cpp @@ -324,20 +324,6 @@ directory_iterator OverlayFileSystem::dir_begin(const Twine &Dir, // VFSFromYAML implementation //===-----------------------------------------------------------------------===/ -// Allow DenseMap<StringRef, ...>. This is useful below because we know all the -// strings are literals and will outlive the map, and there is no reason to -// store them. -namespace llvm { - template<> - struct DenseMapInfo<StringRef> { - // This assumes that "" will never be a valid key. - static inline StringRef getEmptyKey() { return StringRef(""); } - static inline StringRef getTombstoneKey() { return StringRef(); } - static unsigned getHashValue(StringRef Val) { return HashString(Val); } - static bool isEqual(StringRef LHS, StringRef RHS) { return LHS == RHS; } - }; -} - namespace { enum EntryKind { |