aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/StringMap.h
Commit message (Collapse)AuthorAgeFilesLines
* Disable the string map copy ctor and assignment operators,Chris Lattner2007-07-221-1/+16
| | | | | | | | | | | 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
* use calloc instead of new/memset, it is more efficientChris Lattner2007-04-041-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35644 91177308-0d34-0410-b5e6-96231b3b80d8
* Extend StringMap to support being initialized as completely empty. WhenChris Lattner2007-04-041-11/+24
| | | | | | | 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
* add new ShouldRehash method to factor out common code. Fix the dtor to notChris Lattner2007-02-111-12/+14
| | | | | | | delete tombstones. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34189 91177308-0d34-0410-b5e6-96231b3b80d8
* do not allow hash table to be filled with tombstones.Chris Lattner2007-02-111-4/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34186 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for removing elements out of StringMap.Chris Lattner2007-02-111-1/+42
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34185 91177308-0d34-0410-b5e6-96231b3b80d8
* Replace the ugly FindValue method with STL-like find methods.Chris Lattner2007-02-111-5/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34183 91177308-0d34-0410-b5e6-96231b3b80d8
* remove support for stringmap visitors now that iterators exist.Chris Lattner2007-02-111-10/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34180 91177308-0d34-0410-b5e6-96231b3b80d8
* add iterator support, plus support for size() and empty().Chris Lattner2007-02-111-1/+75
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34178 91177308-0d34-0410-b5e6-96231b3b80d8
* Split StringMapEntry construction out of StringMap, into StringMapEntry.Chris Lattner2007-02-111-28/+55
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34170 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename CStringMap -> StringMap, since it now supports nul characters in theChris Lattner2007-02-081-17/+17
| | | | | | | strings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34064 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow cstringmap to contain strings with nul characters in them.Chris Lattner2007-02-081-28/+57
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34062 91177308-0d34-0410-b5e6-96231b3b80d8
* add a methodChris Lattner2006-10-301-0/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31288 91177308-0d34-0410-b5e6-96231b3b80d8
* add newline at end of fileChris Lattner2006-10-291-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31287 91177308-0d34-0410-b5e6-96231b3b80d8
* add a highly efficient hash table that is specialized for mapping C stringsChris Lattner2006-10-291-0/+144
to some other type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31286 91177308-0d34-0410-b5e6-96231b3b80d8