Update generated code to use new API of GetElementPtrInst::Create.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136138 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nicolas Geoffray 2011-07-26 20:52:25 +00:00
parent 84c93d4bb0
commit 45c8d2bc9c

View File

@ -1240,8 +1240,7 @@ void CppWriter::printInstruction(const Instruction *I,
nl(Out); nl(Out);
} }
Out << "Instruction* " << iName << " = GetElementPtrInst::Create(" Out << "Instruction* " << iName << " = GetElementPtrInst::Create("
<< opNames[0] << ", " << iName << "_indices.begin(), " << opNames[0] << ", " << iName << "_indices";
<< iName << "_indices.end()";
} }
Out << ", \""; Out << ", \"";
printEscapedString(gep->getName()); printEscapedString(gep->getName());