[llvm-commits] CVS: llvm/lib/VMCore/SymbolTable.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Dec 31 01:09:02 PST 2003
Changes in directory llvm/lib/VMCore:
SymbolTable.cpp updated: 1.41 -> 1.42
---
Log message:
Make the lookup method const.
---
Diffs of the changes: (+3 -3)
Index: llvm/lib/VMCore/SymbolTable.cpp
diff -u llvm/lib/VMCore/SymbolTable.cpp:1.41 llvm/lib/VMCore/SymbolTable.cpp:1.42
--- llvm/lib/VMCore/SymbolTable.cpp:1.41 Fri Nov 21 14:23:48 2003
+++ llvm/lib/VMCore/SymbolTable.cpp Wed Dec 31 01:08:19 2003
@@ -72,10 +72,10 @@
// lookup - Returns null on failure...
-Value *SymbolTable::lookup(const Type *Ty, const std::string &Name) {
- iterator I = find(Ty);
+Value *SymbolTable::lookup(const Type *Ty, const std::string &Name) const {
+ const_iterator I = find(Ty);
if (I != end()) { // We have symbols in that plane...
- type_iterator J = I->second.find(Name);
+ type_const_iterator J = I->second.find(Name);
if (J != I->second.end()) // and the name is in our hash table...
return J->second;
}
More information about the llvm-commits
mailing list