summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-01-03 03:16:20 +0000
committerChris Lattner <sabre@nondot.org>2011-01-03 03:16:20 +0000
commiteffec5f9df47a61e92e00f7a10cc259c9eea918c (patch)
treeb1a6ad5415534cf7d164e09430e51b9929004d3b
parent79d83067ee238c44c1d23053f0a8ba42b4653a9a (diff)
downloadbcm5719-llvm-effec5f9df47a61e92e00f7a10cc259c9eea918c.tar.gz
bcm5719-llvm-effec5f9df47a61e92e00f7a10cc259c9eea918c.zip
add a handy typedef.
llvm-svn: 122726
-rw-r--r--llvm/include/llvm/ADT/ScopedHashTable.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/ScopedHashTable.h b/llvm/include/llvm/ADT/ScopedHashTable.h
index 731ff7db04d..af3c482043b 100644
--- a/llvm/include/llvm/ADT/ScopedHashTable.h
+++ b/llvm/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; }
OpenPOWER on IntegriCloud