aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/DataStructure/EquivClassGraphs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Analysis/DataStructure/EquivClassGraphs.h')
-rw-r--r--include/llvm/Analysis/DataStructure/EquivClassGraphs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DataStructure/EquivClassGraphs.h b/include/llvm/Analysis/DataStructure/EquivClassGraphs.h
index e696d3d..712c55f 100644
--- a/include/llvm/Analysis/DataStructure/EquivClassGraphs.h
+++ b/include/llvm/Analysis/DataStructure/EquivClassGraphs.h
@@ -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.
///