diff options
author | Duncan Sands <baldrick@free.fr> | 2008-10-03 07:36:09 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-10-03 07:36:09 +0000 |
commit | a2582da44dbe7204aac49cdaeccfd4e77ff7c408 (patch) | |
tree | 38ad77e55802d1222daba3bfce1d8e96f786de68 /include/llvm/Analysis/CallGraph.h | |
parent | dcb31e179000193c65b3f09b7138ef273dc3ce63 (diff) |
Teach internalize to preserve the callgraph.
Why? Because it was there!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56996 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/CallGraph.h')
-rw-r--r-- | include/llvm/Analysis/CallGraph.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h index e63db750ea..27a6ab357f 100644 --- a/include/llvm/Analysis/CallGraph.h +++ b/include/llvm/Analysis/CallGraph.h @@ -225,11 +225,15 @@ public: /// 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 + /// removeAnyCallEdgeTo - This method removes all 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. void removeAnyCallEdgeTo(CallGraphNode *Callee); + /// removeOneAbstractEdgeTo - Remove one edge associated with a null callsite + /// from this node to the specified callee function. + void removeOneAbstractEdgeTo(CallGraphNode *Callee); + /// replaceCallSite - Make the edge in the node for Old CallSite be for /// New CallSite instead. Note that this method takes linear time, so it /// should be used sparingly. |