Update generated code to use new API of GetElementPtrInst::Create.
authorNicolas Geoffray <nicolas.geoffray@lip6.fr>
Tue, 26 Jul 2011 20:52:25 +0000 (20:52 +0000)
committerNicolas Geoffray <nicolas.geoffray@lip6.fr>
Tue, 26 Jul 2011 20:52:25 +0000 (20:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136138 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CppBackend/CPPBackend.cpp

index ab944e6f9212fae13dc16db6f0d138b4798ea596..7f5f5e189e83d64e383427cbaca52047085dcff0 100644 (file)
@@ -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());