From cfea666af2a36d9c385b4b26f8f5bb25b91a7ccc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 23 Jan 2012 21:42:52 +0000 Subject: [PATCH] Various public StringMap methods take or return "MapEntryTy", make it public. llvm-svn: 148732 --- include/llvm/ADT/StringMap.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/llvm/ADT/StringMap.h b/include/llvm/ADT/StringMap.h index e034f38eec7..097418efc81 100644 --- a/include/llvm/ADT/StringMap.h +++ b/include/llvm/ADT/StringMap.h @@ -229,8 +229,9 @@ public: template class StringMap : public StringMapImpl { AllocatorTy Allocator; - typedef StringMapEntry MapEntryTy; public: + typedef StringMapEntry MapEntryTy; + StringMap() : StringMapImpl(static_cast(sizeof(MapEntryTy))) {} explicit StringMap(unsigned InitialSize) : StringMapImpl(InitialSize, static_cast(sizeof(MapEntryTy))) {}