mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
use ArgOperand API
llvm-svn: 107498
This commit is contained in:
parent
9d0f697ca8
commit
92502bcde7
@ -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…
Reference in New Issue
Block a user