mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 15:33:16 +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 (Function *F = CallSite(NewCall).getCalledFunction()) {
|
||||
// Indirect call site resolved to direct call.
|
||||
CallerNode->addCalledFunction(CallSite::get(NewCall), CG[F]);
|
||||
|
||||
CallerNode->addCalledFunction(CallSite(NewCall), CG[F]);
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user