From: Nicolas Geoffray Date: Tue, 26 Jul 2011 20:52:25 +0000 (+0000) Subject: Update generated code to use new API of GetElementPtrInst::Create. X-Git-Tag: android-x86-6.0-r1~928^2~2896 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=45c8d2bc9cf3d0a4da10deab45e3d0d45513e19f;p=android-x86%2Fexternal-llvm.git 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 --- diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index ab944e6f921..7f5f5e189e8 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -1240,8 +1240,7 @@ void CppWriter::printInstruction(const Instruction *I, nl(Out); } Out << "Instruction* " << iName << " = GetElementPtrInst::Create(" - << opNames[0] << ", " << iName << "_indices.begin(), " - << iName << "_indices.end()"; + << opNames[0] << ", " << iName << "_indices"; } Out << ", \""; printEscapedString(gep->getName());