diff options
author | Chris Lattner <sabre@nondot.org> | 2012-01-23 21:42:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-01-23 21:42:52 +0000 |
commit | e55bbfe145cf8dcb9594865f0242321d2be681d6 (patch) | |
tree | 093b7d91957cbbf4be192922affa61128286aee9 | |
parent | e0bd8c3a2608f39f341eb3440df723dc48d435a5 (diff) |
Various public StringMap methods take or return "MapEntryTy", make it public.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148732 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/StringMap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/ADT/StringMap.h b/include/llvm/ADT/StringMap.h index e034f38eec..097418efc8 100644 --- a/include/llvm/ADT/StringMap.h +++ b/include/llvm/ADT/StringMap.h @@ -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))) {} |