Mercurial > hg > CbC > CbC_llvm
comparison llvm/lib/Analysis/CallGraphSCCPass.cpp @ 173:0572611fdcc8 llvm10 llvm12
reorgnization done
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 11:55:54 +0900 |
parents | 1d019706d866 |
children | 2e18cbf3894f |
comparison
equal
deleted
inserted
replaced
172:9fbae9c8bf63 | 173:0572611fdcc8 |
---|---|
560 // pointers to the old CallGraphNode. | 560 // pointers to the old CallGraphNode. |
561 scc_iterator<CallGraph*> *CGI = (scc_iterator<CallGraph*>*)Context; | 561 scc_iterator<CallGraph*> *CGI = (scc_iterator<CallGraph*>*)Context; |
562 CGI->ReplaceNode(Old, New); | 562 CGI->ReplaceNode(Old, New); |
563 } | 563 } |
564 | 564 |
565 void CallGraphSCC::DeleteNode(CallGraphNode *Old) { | |
566 ReplaceNode(Old, /*New=*/nullptr); | |
567 } | |
568 | |
565 //===----------------------------------------------------------------------===// | 569 //===----------------------------------------------------------------------===// |
566 // CallGraphSCCPass Implementation | 570 // CallGraphSCCPass Implementation |
567 //===----------------------------------------------------------------------===// | 571 //===----------------------------------------------------------------------===// |
568 | 572 |
569 /// Assign pass manager to manage this pass. | 573 /// Assign pass manager to manage this pass. |