projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a handy typedef.
[oota-llvm.git]
/
include
/
llvm
/
ADT
/
ScopedHashTable.h
diff --git
a/include/llvm/ADT/ScopedHashTable.h
b/include/llvm/ADT/ScopedHashTable.h
index 731ff7db04d779017f803ae74f026ddf71edc7b8..af3c482043b1eba557c313afda90c736e9b39243 100644
(file)
--- a/
include/llvm/ADT/ScopedHashTable.h
+++ b/
include/llvm/ADT/ScopedHashTable.h
@@
-157,6
+157,11
@@
public:
assert(CurScope == 0 && TopLevelMap.empty() && "Scope imbalance!");
}
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; }
typedef typename ReferenceAdder<AllocatorTy>::result AllocatorRefTy;
typedef typename ReferenceAdder<const AllocatorTy>::result AllocatorCRefTy;
AllocatorRefTy getAllocator() { return Allocator; }