Separate PassInfo into two classes: a constructor-free superclass (StaticPassInfo...
[oota-llvm.git] / lib / Analysis / LibCallSemantics.cpp
index 01fe730e6334e01c7cc4ba0c8ebc0b8b5bf328fb..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(StringRef(ValueName, F->getNameLen()));
-  return I != Map->end() ? I->second : 0;
+  return Map->lookup(F->getName());
 }