Allocator: Remove ReferenceAdder hack.
[oota-llvm.git] / include / llvm / ADT / ScopedHashTable.h
index ae16c9c137bc8ec05ca4100a65adc40fefd64bb8..3cc7738df8aa909747ff7b1649fa837876ea146b 100644 (file)
@@ -167,10 +167,8 @@ public:
   
 
   /// Access to the allocator.
-  typedef typename ReferenceAdder<AllocatorTy>::result AllocatorRefTy;
-  typedef typename ReferenceAdder<const AllocatorTy>::result AllocatorCRefTy;
-  AllocatorRefTy getAllocator() { return Allocator; }
-  AllocatorCRefTy getAllocator() const { return Allocator; }
+  AllocatorTy &getAllocator() { return Allocator; }
+  const AllocatorTy &getAllocator() const { return Allocator; }
 
   bool count(const K &Key) const {
     return TopLevelMap.count(Key);