From 5bf72e20eb49ddd2e977c860670a1e71dbfd89c0 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 23 Jul 2009 18:17:34 +0000 Subject: Convert StringMap to using StringRef for its APIs. - Yay for '-'s and simplifications! - I kept StringMap::GetOrCreateValue for compatibility purposes, this can eventually go away. Likewise the StringMapEntry Create functions still follow the old style. - NIFC. llvm-svn: 76888 --- llvm/lib/Analysis/LibCallSemantics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Analysis/LibCallSemantics.cpp') diff --git a/llvm/lib/Analysis/LibCallSemantics.cpp b/llvm/lib/Analysis/LibCallSemantics.cpp index 29850471f7d..01fe730e633 100644 --- a/llvm/lib/Analysis/LibCallSemantics.cpp +++ b/llvm/lib/Analysis/LibCallSemantics.cpp @@ -59,7 +59,7 @@ const LibCallFunctionInfo *LibCallInfo::getFunctionInfo(Function *F) const { // Look up this function in the string map. const char *ValueName = F->getNameStart(); StringMap::iterator I = - Map->find(ValueName, ValueName+F->getNameLen()); + Map->find(StringRef(ValueName, F->getNameLen())); return I != Map->end() ? I->second : 0; } -- cgit v1.2.3