diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-13 19:41:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-13 19:41:25 +0000 |
commit | 75caee241955fdcd9942c42be8b77ba9996e94d6 (patch) | |
tree | 67511ac1c979a76cd4d24804622196256525cc2e /include/llvm/Analysis/CallGraph.h | |
parent | f99b28615408408286dbaec742606fd1e89c82e4 (diff) | |
download | llvm-75caee241955fdcd9942c42be8b77ba9996e94d6.tar.gz llvm-75caee241955fdcd9942c42be8b77ba9996e94d6.tar.bz2 llvm-75caee241955fdcd9942c42be8b77ba9996e94d6.tar.xz |
add a new CallGraphNode::removeCallEdgeFor method, tidy some comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/CallGraph.h')
-rw-r--r-- | include/llvm/Analysis/CallGraph.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h index 6cf33dc2ff..2bb06900ab 100644 --- a/include/llvm/Analysis/CallGraph.h +++ b/include/llvm/Analysis/CallGraph.h @@ -103,13 +103,13 @@ public: return I->second; } - //Returns the CallGraphNode which is used to represent undetermined calls - // into the callgraph. Override this if you want behavioural inheritance. + /// Returns the CallGraphNode which is used to represent undetermined calls + /// into the callgraph. Override this if you want behavioral inheritance. virtual CallGraphNode* getExternalCallingNode() const { return 0; } - //Return the root/main method in the module, or some other root node, such - // as the externalcallingnode. Overload these if you behavioural - // inheritance. + /// Return the root/main method in the module, or some other root node, such + /// as the externalcallingnode. Overload these if you behavioral + /// inheritance. virtual CallGraphNode* getRoot() { return 0; } virtual const CallGraphNode* getRoot() const { return 0; } @@ -227,6 +227,11 @@ public: /// used sparingly. void removeCallEdgeTo(CallGraphNode *Callee); + /// removeCallEdgeFor - This method removes the edge in the node for the + /// specified call site. Note that this method takes linear time, so it + /// should be used sparingly. + void removeCallEdgeFor(CallSite CS); + /// removeAnyCallEdgeTo - This method removes any call edges from this node to /// the specified callee function. This takes more time to execute than /// removeCallEdgeTo, so it should not be used unless necessary. |