From 84c7b9e586030957e02a06e4db3c65feb1b84b41 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 26 Jul 2011 20:52:25 +0000 Subject: Update generated code to use new API of GetElementPtrInst::Create. llvm-svn: 136138 --- llvm/lib/Target/CppBackend/CPPBackend.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/Target/CppBackend/CPPBackend.cpp') diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index ab944e6f921..7f5f5e189e8 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/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()); -- cgit v1.2.3