aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/IndexedMap.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-01 05:32:05 +0000
committerChris Lattner <sabre@nondot.org>2007-02-01 05:32:05 +0000
commit94c002a190cd2e3a52b1510bc997e53d63af0b3b (patch)
treef7966be2a37b2bfdaf9d7198138f00b46e7f1a3f /include/llvm/ADT/IndexedMap.h
parente3f71b4198cebee9c9f2534c39bd3e19740eee6a (diff)
downloadexternal_llvm-94c002a190cd2e3a52b1510bc997e53d63af0b3b.tar.gz
external_llvm-94c002a190cd2e3a52b1510bc997e53d63af0b3b.tar.bz2
external_llvm-94c002a190cd2e3a52b1510bc997e53d63af0b3b.zip
rename DenseMap to IndexedMap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33749 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/IndexedMap.h')
-rw-r--r--include/llvm/ADT/IndexedMap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/ADT/IndexedMap.h b/include/llvm/ADT/IndexedMap.h
index 7e0fbbb07e..bc38fddc61 100644
--- a/include/llvm/ADT/IndexedMap.h
+++ b/include/llvm/ADT/IndexedMap.h
@@ -33,7 +33,7 @@ namespace llvm {
};
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 @@ namespace llvm {
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!");