diff options
author | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2011-07-21 20:59:21 +0000 |
---|---|---|
committer | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2011-07-21 20:59:21 +0000 |
commit | 6820c1e0d34b75ff8f14a6a44202803e13d59c42 (patch) | |
tree | 6abf9ce4aa181d60cc4561ec1126418526a2c471 /llvm/lib/Target | |
parent | 0a8d89242f49f121baa12080312c977609927a09 (diff) | |
download | bcm5719-llvm-6820c1e0d34b75ff8f14a6a44202803e13d59c42.tar.gz bcm5719-llvm-6820c1e0d34b75ff8f14a6a44202803e13d59c42.zip |
Update generated CPP code with the new API on CallInst::Create and ConstantExpr::getGetElementPtr.
llvm-svn: 135704
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/CppBackend/CPPBackend.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index ad33cfa3196..cce0fa4a965 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp @@ -766,9 +766,7 @@ void CppWriter::printConstant(const Constant *CV) { Out << "Constant* " << constName << " = ConstantExpr::getGetElementPtr(" << getCppName(CE->getOperand(0)) << ", " - << "&" << constName << "_indices[0], " - << constName << "_indices.size()" - << ");"; + << constName << "_indices);"; } else if (CE->isCast()) { printConstant(CE->getOperand(0)); Out << "Constant* " << constName << " = ConstantExpr::getCast("; @@ -1331,8 +1329,7 @@ void CppWriter::printInstruction(const Instruction *I, } Out << "CallInst* " << iName << " = CallInst::Create(" << opNames[call->getNumArgOperands()] << ", " - << iName << "_params.begin(), " - << iName << "_params.end(), \""; + << iName << "_params, \""; } else if (call->getNumArgOperands() == 1) { Out << "CallInst* " << iName << " = CallInst::Create(" << opNames[call->getNumArgOperands()] << ", " << opNames[0] << ", \""; |