summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/StringMap.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-01-23 21:42:52 +0000
committerChris Lattner <sabre@nondot.org>2012-01-23 21:42:52 +0000
commite55bbfe145cf8dcb9594865f0242321d2be681d6 (patch)
tree093b7d91957cbbf4be192922affa61128286aee9 /include/llvm/ADT/StringMap.h
parente0bd8c3a2608f39f341eb3440df723dc48d435a5 (diff)
downloadllvm-e55bbfe145cf8dcb9594865f0242321d2be681d6.tar.gz
llvm-e55bbfe145cf8dcb9594865f0242321d2be681d6.tar.bz2
llvm-e55bbfe145cf8dcb9594865f0242321d2be681d6.tar.xz
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
Diffstat (limited to 'include/llvm/ADT/StringMap.h')
-rw-r--r--include/llvm/ADT/StringMap.h3
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))) {}