diff options
author | Chris Lattner <sabre@nondot.org> | 2003-12-31 07:08:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-12-31 07:08:19 +0000 |
commit | 69284b03d1dc7ebdc2ce22f65afe5ef04cc01cf4 (patch) | |
tree | 85f25335d137000cf3232c0cfe16fbb42873b1e9 /lib/VMCore/SymbolTable.cpp | |
parent | b0fa6599811adac127f95289567dc20d97187442 (diff) |
Make the lookup method const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/SymbolTable.cpp')
-rw-r--r-- | lib/VMCore/SymbolTable.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VMCore/SymbolTable.cpp b/lib/VMCore/SymbolTable.cpp index 8c9e86c003..be1459e70b 100644 --- a/lib/VMCore/SymbolTable.cpp +++ b/lib/VMCore/SymbolTable.cpp @@ -72,10 +72,10 @@ std::string SymbolTable::getUniqueName(const Type *Ty, // 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; } |