mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Simplify code to process CallSites (thanks to Chris).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12334 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a24653cdfc
commit
85f5e11c06
@ -91,10 +91,8 @@ bool AAEval::runOnFunction(Function &F) {
|
||||
}
|
||||
|
||||
for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I) {
|
||||
if (CallInst *CI = dyn_cast<CallInst>(*I))
|
||||
CallSites.insert(CallSite(CI));
|
||||
else if (InvokeInst *II = dyn_cast<InvokeInst>(*I))
|
||||
CallSites.insert(CallSite(II));
|
||||
CallSite CS = CallSite::get(*I);
|
||||
if (CS.getInstruction()) CallSites.insert(CS);
|
||||
}
|
||||
|
||||
if (PrintNoAlias || PrintMayAlias || PrintMustAlias ||
|
||||
|
Loading…
Reference in New Issue
Block a user