Chris Lattner
|
1bcc79666d
|
Add a helper useful when mapping from a map element to its hash node.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42480 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-09-30 08:31:46 +00:00 |
|
Chris Lattner
|
c6402013c8
|
Disable the string map copy ctor and assignment operators,
they don't do the right thing.
Implement StringMap::erase.
Fix a nasty bug in the default ctor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40395 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-07-22 20:08:01 +00:00 |
|
Chris Lattner
|
d2f197da59
|
use calloc instead of new/memset, it is more efficient
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35644 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-04-04 00:44:31 +00:00 |
|
Chris Lattner
|
794a014809
|
Extend StringMap to support being initialized as completely empty. When
initialized this way, they do not do a malloc to allocate their buckets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35642 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-04-04 00:29:37 +00:00 |
|
Chris Lattner
|
a96b4ee7ff
|
add new ShouldRehash method to factor out common code. Fix the dtor to not
delete tombstones.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34189 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-11 21:46:36 +00:00 |
|
Chris Lattner
|
65033ffc29
|
do not allow hash table to be filled with tombstones.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34186 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-11 21:07:36 +00:00 |
|
Chris Lattner
|
44dcd01cb3
|
Add support for removing elements out of StringMap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34185 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-11 20:58:00 +00:00 |
|
Chris Lattner
|
b5bb9f5b5c
|
Replace the ugly FindValue method with STL-like find methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34183 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-11 19:49:41 +00:00 |
|
Chris Lattner
|
360cac8fef
|
remove support for stringmap visitors now that iterators exist.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34180 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-11 08:22:15 +00:00 |
|
Chris Lattner
|
6ccadf6f7f
|
add iterator support, plus support for size() and empty().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34178 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-11 08:12:13 +00:00 |
|
Chris Lattner
|
9cc2d3dce8
|
Split StringMapEntry construction out of StringMap, into StringMapEntry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34170 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-11 00:10:26 +00:00 |
|
Chris Lattner
|
bb28a81ba3
|
Rename CStringMap -> StringMap, since it now supports nul characters in the
strings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34064 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-08 19:20:57 +00:00 |
|
Chris Lattner
|
ee182422ff
|
Allow cstringmap to contain strings with nul characters in them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34062 91177308-0d34-0410-b5e6-96231b3b80d8
|
2007-02-08 19:08:37 +00:00 |
|
Chris Lattner
|
6c1645ce7d
|
add a method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31288 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-10-30 03:14:15 +00:00 |
|
Chris Lattner
|
463c4a1ae9
|
add newline at end of file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31287 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-10-29 23:47:01 +00:00 |
|
Chris Lattner
|
23d7b36117
|
add a highly efficient hash table that is specialized for mapping C strings
to some other type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31286 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-10-29 23:42:03 +00:00 |
|