projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
289148a
)
[ADT/StringMap] Add a constructor in StringMap that accepts both an
author
Argyrios Kyrtzidis
<akyrtzi@gmail.com>
Mon, 14 Jan 2013 19:41:09 +0000
(19:41 +0000)
committer
Argyrios Kyrtzidis
<akyrtzi@gmail.com>
Mon, 14 Jan 2013 19:41:09 +0000
(19:41 +0000)
initial size and an allocator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172455
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/StringMap.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/StringMap.h
b/include/llvm/ADT/StringMap.h
index 0d68d11a12f1c7b3f18312f133f626d4196b1e56..978ec4430329c1ef4641a49f8b7434cc4f3aac0e 100644
(file)
--- a/
include/llvm/ADT/StringMap.h
+++ b/
include/llvm/ADT/StringMap.h
@@
-237,6
+237,9
@@
public:
explicit StringMap(AllocatorTy A)
: StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))), Allocator(A) {}
+ StringMap(unsigned InitialSize, AllocatorTy A)
+ : StringMapImpl(InitialSize), Allocator(A) {}
+
StringMap(const StringMap &RHS)
: StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))) {
assert(RHS.empty() &&