[llvm-commits] [llvm] r122726 - /llvm/trunk/include/llvm/ADT/ScopedHashTable.h
Chris Lattner
sabre at nondot.org
Sun Jan 2 19:16:20 PST 2011
Author: lattner
Date: Sun Jan 2 21:16:20 2011
New Revision: 122726
URL: http://llvm.org/viewvc/llvm-project?rev=122726&view=rev
Log:
add a handy typedef.
Modified:
llvm/trunk/include/llvm/ADT/ScopedHashTable.h
Modified: llvm/trunk/include/llvm/ADT/ScopedHashTable.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ScopedHashTable.h?rev=122726&r1=122725&r2=122726&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ScopedHashTable.h (original)
+++ llvm/trunk/include/llvm/ADT/ScopedHashTable.h Sun Jan 2 21:16:20 2011
@@ -157,6 +157,11 @@
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; }
More information about the llvm-commits
mailing list