mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-14 00:31:06 +00:00
use ArgOperand API
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107498 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8c1ffae068
commit
53ba550df1
@ -1399,8 +1399,8 @@ void CppWriter::printInstruction(const Instruction *I,
|
||||
if (call->getNumArgOperands() > 1) {
|
||||
Out << "std::vector<Value*> " << iName << "_params;";
|
||||
nl(Out);
|
||||
for (unsigned i = 1; i < call->getNumOperands(); ++i) {
|
||||
Out << iName << "_params.push_back(" << opNames[i] << ");";
|
||||
for (unsigned i = 0; i < call->getNumArgOperands(); ++i) {
|
||||
Out << iName << "_params.push_back(" << opNames[i+1] << ");";
|
||||
nl(Out);
|
||||
}
|
||||
Out << "CallInst* " << iName << " = CallInst::Create("
|
||||
|
Loading…
x
Reference in New Issue
Block a user