Changes in directory llvm/include/llvm/ADT:
UniqueVector.h updated: 1.6 -> 1.7 --- Log message: Const method must use const_iterator. --- Diffs of the changes: (+1 -2) UniqueVector.h | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) Index: llvm/include/llvm/ADT/UniqueVector.h diff -u llvm/include/llvm/ADT/UniqueVector.h:1.6 llvm/include/llvm/ADT/UniqueVector.h:1.7 --- llvm/include/llvm/ADT/UniqueVector.h:1.6 Thu Jan 26 14:30:51 2006 +++ llvm/include/llvm/ADT/UniqueVector.h Mon Feb 5 17:18:32 2007 @@ -1,4 +1,3 @@ - //===-- llvm/ADT/UniqueVector.h ---------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure @@ -56,7 +55,7 @@ /// not found. unsigned idFor(const T &Entry) const { // Search for entry in the map. - typename std::map<T, unsigned>::iterator MI = Map.find(Entry); + typename std::map<T, unsigned>::const_iterator MI = Map.find(Entry); // See if entry exists, if so return ID. if (MI != Map.end()) return MI->second; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits