llvm-6502/include/llvm/ADT
Jeffrey Yasskin 81cf432569 Fix DenseMap iterator constness.
This patch forbids implicit conversion of DenseMap::const_iterator to
DenseMap::iterator which was possible because DenseMapIterator inherited
(publicly) from DenseMapConstIterator. Conversion the other way around is now
allowed as one may expect.

The template DenseMapConstIterator is removed and the template parameter
IsConst which specifies whether the iterator is constant is added to
DenseMapIterator.

Actually IsConst parameter is not necessary since the constness can be
determined from KeyT but this is not relevant to the fix and can be addressed
later.

Patch by Victor Zverovich!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86636 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-10 01:02:17 +00:00
..
APFloat.h Remove getIEEEFloatParts and getIEEEDoubleParts. They are not needed. 2009-10-28 01:08:17 +00:00
APInt.h Add a ceilLogBase2 function to APInt. 2009-10-13 01:49:02 +00:00
APSInt.h Fix bug where APSInt::operator-- incremented instead of decremented. 2009-02-16 22:39:08 +00:00
BitVector.h Use CHAR_BIT instead of hard-coding 8 in several places where it 2009-04-01 18:45:54 +00:00
DenseMap.h Fix DenseMap iterator constness. 2009-11-10 01:02:17 +00:00
DenseMapInfo.h More warnings patrol: Another unused argument and more implicit 2009-10-17 23:56:18 +00:00
DenseSet.h Add range insert method for DenseSet and define DenseMapInfo for chars. 2009-04-01 19:50:49 +00:00
DepthFirstIterator.h Clean up the minor mess I caused with removing iterator.h. I shall take care of 80-col violations and the FIXME later. (Thanks goodness that I live in another continent, so the monkeypox did not strike me :-) 2009-08-27 06:41:46 +00:00
EquivalenceClasses.h Move DataTypes.h to include/llvm/System, update all users. This breaks the last 2009-10-26 01:35:46 +00:00
FoldingSet.h Move DataTypes.h to include/llvm/System, update all users. This breaks the last 2009-10-26 01:35:46 +00:00
GraphTraits.h Fixed lint errors: 2009-02-20 22:20:18 +00:00
ilist_node.h Public and private corrections, warned about by icc (#304). 2009-09-06 08:55:57 +00:00
ilist.h Public and private corrections, warned about by icc (#304). 2009-09-06 08:55:57 +00:00
ImmutableList.h Move DataTypes.h to include/llvm/System, update all users. This breaks the last 2009-10-26 01:35:46 +00:00
ImmutableMap.h Make a few more LLVM headers parsable as standalone headers. 2009-11-05 23:01:30 +00:00
ImmutableSet.h Make a few more LLVM headers parsable as standalone headers. 2009-11-05 23:01:30 +00:00
IndexedMap.h Public and private corrections, warned about by icc (#304). 2009-09-06 08:55:57 +00:00
IntrusiveRefCntPtr.h Fixed lint errors: 2009-02-20 22:20:18 +00:00
OwningPtr.h Fixed lint errors: 2009-02-20 22:20:18 +00:00
PointerIntPair.h Fix a few places where PointerIntPair was using PointerLikeTypeTraits<PointerTy> 2009-09-17 20:35:18 +00:00
PointerUnion.h Add a bunch of missing "template" keywords to disambiguate dependent template names. GCC eats this ill-formed code, Clang does not. I already filed PR5404 to improve recovery in this case 2009-11-06 00:12:53 +00:00
PostOrderIterator.h eliminate all 80-col violations that I have introduced in my recent checkins (and some others more) 2009-08-27 23:44:33 +00:00
PriorityQueue.h Make a few more LLVM headers parsable as standalone headers. 2009-11-05 23:01:30 +00:00
SCCIterator.h switch scciterator to use DenseMap instead of std::map 2009-09-15 04:37:49 +00:00
ScopedHashTable.h Removed trailing whitespace. 2009-01-09 19:25:42 +00:00
SetOperations.h Don't attribute in file headers anymore. See llvmdev for the 2007-12-29 19:59:42 +00:00
SetVector.h Fixed lint errors: 2009-02-20 22:20:18 +00:00
SmallPtrSet.h Move DataTypes.h to include/llvm/System, update all users. This breaks the last 2009-10-26 01:35:46 +00:00
SmallSet.h Fix apostrophos. 2009-09-15 15:08:33 +00:00
SmallString.h add a simple c_str() method to SmallString. 2009-09-19 23:57:31 +00:00
SmallVector.h Clean up the minor mess I caused with removing iterator.h. I shall take care of 80-col violations and the FIXME later. (Thanks goodness that I live in another continent, so the monkeypox did not strike me :-) 2009-08-27 06:41:46 +00:00
SparseBitVector.h Move DataTypes.h to include/llvm/System, update all users. This breaks the last 2009-10-26 01:35:46 +00:00
Statistic.h Fix the build on Cygwin. Patch by Aaron Gray. 2009-06-30 05:33:46 +00:00
STLExtras.h Clean up the minor mess I caused with removing iterator.h. I shall take care of 80-col violations and the FIXME later. (Thanks goodness that I live in another continent, so the monkeypox did not strike me :-) 2009-08-27 06:41:46 +00:00
StringExtras.h Move DataTypes.h to include/llvm/System, update all users. This breaks the last 2009-10-26 01:35:46 +00:00
StringMap.h Pass StringRef by value. 2009-11-06 10:58:06 +00:00
StringRef.h Pass StringRef by value. 2009-11-06 10:58:06 +00:00
StringSet.h Remove extra blank line and space. 2009-01-08 06:11:51 +00:00
StringSwitch.h Add StringSwitch::Cases overloads, for matching multiple strings to a single 2009-11-09 23:05:44 +00:00
Trie.h Make a few more LLVM headers parsable as standalone headers. 2009-11-05 23:01:30 +00:00
Triple.h Pass StringRef by value. 2009-11-06 10:58:06 +00:00
Twine.h Move DataTypes.h to include/llvm/System, update all users. This breaks the last 2009-10-26 01:35:46 +00:00
UniqueVector.h Removed trailing whitespace. 2009-01-09 19:25:42 +00:00
ValueMap.h Fix VS build, patch by Marius Wachtler. 2009-10-27 02:17:51 +00:00
VectorExtras.h Don't attribute in file headers anymore. See llvmdev for the 2007-12-29 19:59:42 +00:00