diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-01 18:52:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-01 18:52:39 +0000 |
commit | 9b463729d72ba909061f9a8c28a839699fa693a7 (patch) | |
tree | 43bb50238e1160a7d1ffced310201ec9f7a77aad /llvm/lib/Transforms/IPO/ArgumentPromotion.cpp | |
parent | d7797754d4c2425ebed489f179589bca9b423bbc (diff) | |
download | bcm5719-llvm-9b463729d72ba909061f9a8c28a839699fa693a7.tar.gz bcm5719-llvm-9b463729d72ba909061f9a8c28a839699fa693a7.zip |
remove CallGraphNode::replaceCallSite, it is redundant with other APIs.
llvm-svn: 80708
Diffstat (limited to 'llvm/lib/Transforms/IPO/ArgumentPromotion.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/ArgumentPromotion.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp index b1f7f045ac0..3c584c894af 100644 --- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp +++ b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp @@ -728,7 +728,9 @@ CallGraphNode *ArgPromotion::DoPromotion(Function *F, AA.replaceWithNewValue(Call, New); // Update the callgraph to know that the callsite has been transformed. - CG[Call->getParent()->getParent()]->replaceCallSite(Call, New, NF_CGN); + CallGraphNode *CalleeNode = CG[Call->getParent()->getParent()]; + CalleeNode->removeCallEdgeFor(Call); + CalleeNode->addCalledFunction(New, NF_CGN); if (!Call->use_empty()) { Call->replaceAllUsesWith(New); |