projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A8.6.315 VLD3 (single 3-element structure to all lanes)
[oota-llvm.git]
/
lib
/
Analysis
/
LibCallSemantics.cpp
diff --git
a/lib/Analysis/LibCallSemantics.cpp
b/lib/Analysis/LibCallSemantics.cpp
index 29850471f7dc3958a0ff62523f214433438f26d5..81b0f46f3740e730221158d42906cc0cb289c8d5 100644
(file)
--- a/
lib/Analysis/LibCallSemantics.cpp
+++ b/
lib/Analysis/LibCallSemantics.cpp
@@
-40,7
+40,8
@@
const LibCallLocationInfo &LibCallInfo::getLocationInfo(unsigned LocID) const {
/// getFunctionInfo - Return the LibCallFunctionInfo object corresponding to
/// the specified function if we have it. If not, return null.
/// getFunctionInfo - Return the LibCallFunctionInfo object corresponding to
/// the specified function if we have it. If not, return null.
-const LibCallFunctionInfo *LibCallInfo::getFunctionInfo(Function *F) const {
+const LibCallFunctionInfo *
+LibCallInfo::getFunctionInfo(const Function *F) const {
StringMap<const LibCallFunctionInfo*> *Map = getMap(Impl);
/// If this is the first time we are querying for this info, lazily construct
StringMap<const LibCallFunctionInfo*> *Map = getMap(Impl);
/// If this is the first time we are querying for this info, lazily construct
@@
-57,9
+58,6
@@
const LibCallFunctionInfo *LibCallInfo::getFunctionInfo(Function *F) const {
}
// Look up this function in the string map.
}
// 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());
}
}