mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
use callsite to obtain all arguments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106729 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aeff385e3e
commit
0a14be0693
@ -272,7 +272,8 @@ Expression ValueTable::create_expression(CallInst* C) {
|
|||||||
e.function = C->getCalledFunction();
|
e.function = C->getCalledFunction();
|
||||||
e.opcode = Expression::CALL;
|
e.opcode = Expression::CALL;
|
||||||
|
|
||||||
for (CallInst::op_iterator I = C->op_begin()+1, E = C->op_end();
|
CallSite CS(C);
|
||||||
|
for (CallInst::op_iterator I = CS.arg_begin(), E = CS.arg_end();
|
||||||
I != E; ++I)
|
I != E; ++I)
|
||||||
e.varargs.push_back(lookup_or_add(*I));
|
e.varargs.push_back(lookup_or_add(*I));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user