diff options
author | Chris Lattner <sabre@nondot.org> | 2011-01-03 03:16:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-01-03 03:16:20 +0000 |
commit | 152096275ad45bb13d5652f7019f48be5ccd67f8 (patch) | |
tree | 9c31ac1d989923db05d4abb1dd1821d39b7d505e | |
parent | f19745947daafd81d0d3bbdcdc7854053e0231fc (diff) |
add a handy typedef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122726 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/ScopedHashTable.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/ADT/ScopedHashTable.h b/include/llvm/ADT/ScopedHashTable.h index 731ff7db04..af3c482043 100644 --- a/include/llvm/ADT/ScopedHashTable.h +++ b/include/llvm/ADT/ScopedHashTable.h @@ -157,6 +157,11 @@ public: assert(CurScope == 0 && TopLevelMap.empty() && "Scope imbalance!"); } + /// ScopeTy - This is a helpful typedef that allows clients to get easy access + /// to the name of the scope for this hash table. + typedef ScopedHashTableScope<K, V, KInfo, AllocatorTy> ScopeTy; + + /// Access to the allocator. typedef typename ReferenceAdder<AllocatorTy>::result AllocatorRefTy; typedef typename ReferenceAdder<const AllocatorTy>::result AllocatorCRefTy; AllocatorRefTy getAllocator() { return Allocator; } |