summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Geoffray <nicolas.geoffray@lip6.fr>2011-07-26 20:52:25 +0000
committerNicolas Geoffray <nicolas.geoffray@lip6.fr>2011-07-26 20:52:25 +0000
commit84c7b9e586030957e02a06e4db3c65feb1b84b41 (patch)
treed2e243c34cbf83c125133a61d7ae981176e97733
parent73a8393a47828129c409a789986541c3f9458ea1 (diff)
downloadbcm5719-llvm-84c7b9e586030957e02a06e4db3c65feb1b84b41.tar.gz
bcm5719-llvm-84c7b9e586030957e02a06e4db3c65feb1b84b41.zip
Update generated code to use new API of GetElementPtrInst::Create.
llvm-svn: 136138
-rw-r--r--llvm/lib/Target/CppBackend/CPPBackend.cpp3
1 files changed, 1 insertions, 2 deletions
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());
OpenPOWER on IntegriCloud