simplify: CallSite::get --> CallSite constructor

llvm-svn: 109506
This commit is contained in:
Gabor Greif 2010-07-27 15:02:37 +00:00
parent 96c042616e
commit 7b0a5fd2a5
1 changed files with 4 additions and 4 deletions

View File

@ -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