mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
simplify by using CallSite constructors; virtually eliminates CallSite::get from the tree
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109687 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -156,7 +156,7 @@ bool SRETPromotion::isSafeToUpdateAllCallers(Function *F) {
|
||||
FnUseI != FnUseE; ++FnUseI) {
|
||||
// The function is passed in as an argument to (possibly) another function,
|
||||
// we can't change it!
|
||||
CallSite CS = CallSite::get(*FnUseI);
|
||||
CallSite CS(*FnUseI);
|
||||
Instruction *Call = CS.getInstruction();
|
||||
// The function is used by something else than a call or invoke instruction,
|
||||
// we can't change it!
|
||||
@@ -271,7 +271,7 @@ CallGraphNode *SRETPromotion::updateCallSites(Function *F, Function *NF) {
|
||||
CallGraphNode *NF_CGN = CG.getOrInsertFunction(NF);
|
||||
|
||||
while (!F->use_empty()) {
|
||||
CallSite CS = CallSite::get(*F->use_begin());
|
||||
CallSite CS(*F->use_begin());
|
||||
Instruction *Call = CS.getInstruction();
|
||||
|
||||
const AttrListPtr &PAL = F->getAttributes();
|
||||
|
||||
Reference in New Issue
Block a user