[ADT] Add CachedHashString.
authorJustin Lebar <jlebar@google.com>
Fri, 21 Oct 2016 20:10:48 +0000 (20:10 +0000)
committerJustin Lebar <jlebar@google.com>
Fri, 21 Oct 2016 20:10:48 +0000 (20:10 +0000)
commitd87ea9a1c9190737ee23a4eda641d0fb1b8b489d
treee30d1d78cb8cb71878095d6d304f3279c8ad5ffd
parent245c3e75cd84b012a7dd9fdd79f21e74bc95d1e1
[ADT] Add CachedHashString.

Summary:
This is like CachedHashStringRef, but owns its data.

This lets us use strings inside of DenseMaps.

Reviewers: timshen

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D25645

llvm-svn: 284871
llvm/include/llvm/ADT/CachedHashString.h