[llvm-commits] CVS: llvm/include/llvm/ADT/IndexedMap.h DenseMap.h
Chris Lattner
sabre at nondot.org
Wed Jan 31 21:31:12 PST 2007
Changes in directory llvm/include/llvm/ADT:
IndexedMap.h updated: 1.10 -> 1.11
DenseMap.h (r1.9) removed
---
Log message:
rename DenseMap to IndexedMap.
---
Diffs of the changes: (+3 -3)
IndexedMap.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/include/llvm/ADT/IndexedMap.h
diff -u llvm/include/llvm/ADT/IndexedMap.h:1.10 llvm/include/llvm/ADT/IndexedMap.h:1.11
--- llvm/include/llvm/ADT/IndexedMap.h:1.10 Wed Jan 31 23:28:10 2007
+++ llvm/include/llvm/ADT/IndexedMap.h Wed Jan 31 23:30:56 2007
@@ -33,7 +33,7 @@
};
template <typename T, typename ToIndexT = IdentityFunctor>
- class IndexMap {
+ class IndexedMap {
typedef typename ToIndexT::argument_type IndexT;
typedef std::vector<T> StorageT;
StorageT storage_;
@@ -41,9 +41,9 @@
ToIndexT toIndex_;
public:
- IndexMap() : nullVal_(T()) { }
+ IndexedMap() : nullVal_(T()) { }
- explicit IndexMap(const T& val) : nullVal_(val) { }
+ explicit IndexedMap(const T& val) : nullVal_(val) { }
typename StorageT::reference operator[](IndexT n) {
assert(toIndex_(n) < storage_.size() && "index out of bounds!");
More information about the llvm-commits
mailing list