Fix some crashes noted by John Mellor-Crummey's group.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20558 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-03-11 00:00:56 +00:00
parent f75c4b444b
commit 8694c076c7

View File

@ -71,6 +71,12 @@ namespace PA {
return *I->second;
}
/// ContainsDSGraphFor - Return true if we have a graph for the specified
/// function.
bool ContainsDSGraphFor(const Function &F) const {
return DSInfo.find(&F) != DSInfo.end();
}
/// getSomeCalleeForCallSite - Return any one callee function at
/// a call site.
///