mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
When PruneEH turned an invoke into an ordinary
call (thus changing the call site) it didn't inform the callgraph about this. But the call site does matter - as shown by the testcase, the callgraph become invalid after the inliner ran (with an edge between two functions simply missing), resulting in wrong deductions by GlobalsModRef. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55872 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -235,6 +235,11 @@ public:
|
||||
/// removeCallEdgeTo, so it should not be used unless necessary.
|
||||
void removeAnyCallEdgeTo(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.
|
||||
void replaceCallSite(CallSite Old, CallSite New);
|
||||
|
||||
friend class CallGraph;
|
||||
|
||||
// CallGraphNode ctor - Create a node for the specified function.
|
||||
|
Reference in New Issue
Block a user