mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-07 13:09:52 +00:00
simplify: CallSite::get --> CallSite constructor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109506 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c0d4aed6f7
commit
86099345db
@ -215,12 +215,12 @@ static void UpdateCallGraphAfterInlining(CallSite CS,
|
|||||||
if (I->second->getFunction() == 0)
|
if (I->second->getFunction() == 0)
|
||||||
if (Function *F = CallSite(NewCall).getCalledFunction()) {
|
if (Function *F = CallSite(NewCall).getCalledFunction()) {
|
||||||
// Indirect call site resolved to direct call.
|
// Indirect call site resolved to direct call.
|
||||||
CallerNode->addCalledFunction(CallSite::get(NewCall), CG[F]);
|
CallerNode->addCalledFunction(CallSite(NewCall), CG[F]);
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
CallerNode->addCalledFunction(CallSite::get(NewCall), I->second);
|
CallerNode->addCalledFunction(CallSite(NewCall), I->second);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update the call graph by deleting the edge from Callee to Caller. We must
|
// Update the call graph by deleting the edge from Callee to Caller. We must
|
||||||
|
Loading…
x
Reference in New Issue
Block a user