inline isGEP away.
[oota-llvm.git] / lib / Analysis / LibCallSemantics.cpp
index 29850471f7dc3958a0ff62523f214433438f26d5..e0060c3e89b1aa578237cdbc991387d293fdceba 100644 (file)
@@ -57,9 +57,6 @@ const LibCallFunctionInfo *LibCallInfo::getFunctionInfo(Function *F) const {
   }
   
   // Look up this function in the string map.
-  const char *ValueName = F->getNameStart();
-  StringMap<const LibCallFunctionInfo*>::iterator I =
-  Map->find(ValueName, ValueName+F->getNameLen());
-  return I != Map->end() ? I->second : 0;
+  return Map->lookup(F->getName());
 }