Various public StringMap methods take or return "MapEntryTy", make it public.
authorChris Lattner <sabre@nondot.org>
Mon, 23 Jan 2012 21:42:52 +0000 (21:42 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 23 Jan 2012 21:42:52 +0000 (21:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148732 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/StringMap.h

index e034f38eec7f0a58958d708cab1ed89245b7087b..097418efc817966de8fb02504b0d16bfb2881bc3 100644 (file)
@@ -229,8 +229,9 @@ public:
 template<typename ValueTy, typename AllocatorTy = MallocAllocator>
 class StringMap : public StringMapImpl {
   AllocatorTy Allocator;
-  typedef StringMapEntry<ValueTy> MapEntryTy;
 public:
+  typedef StringMapEntry<ValueTy> MapEntryTy;
+  
   StringMap() : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))) {}
   explicit StringMap(unsigned InitialSize)
     : StringMapImpl(InitialSize, static_cast<unsigned>(sizeof(MapEntryTy))) {}