summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-31 07:08:19 +0000
committerChris Lattner <sabre@nondot.org>2003-12-31 07:08:19 +0000
commitefeb39e3c028ef569674d712c0062fe97e5db810 (patch)
tree86ad06c801d9749a2247678425b98f9c961e632f /llvm/lib
parente7f42f72d32f7ff793bf0b0e3942a85ed9bccf38 (diff)
downloadbcm5719-llvm-efeb39e3c028ef569674d712c0062fe97e5db810.tar.gz
bcm5719-llvm-efeb39e3c028ef569674d712c0062fe97e5db810.zip
Make the lookup method const.
llvm-svn: 10667
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/SymbolTable.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/SymbolTable.cpp b/llvm/lib/VMCore/SymbolTable.cpp
index 8c9e86c0030..be1459e70b7 100644
--- a/llvm/lib/VMCore/SymbolTable.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud