diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-09-05 18:50:59 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-09-05 18:50:59 +0000 |
commit | 3bca1013291e1b17050e3332faf3dccb128b3da0 (patch) | |
tree | fd2b26559f19546600f330cad0fa7142ec527099 | |
parent | 7442a03dcc2ac7850a77ec7c639973d8dc6034ae (diff) | |
download | external_llvm-3bca1013291e1b17050e3332faf3dccb128b3da0.zip external_llvm-3bca1013291e1b17050e3332faf3dccb128b3da0.tar.gz external_llvm-3bca1013291e1b17050e3332faf3dccb128b3da0.tar.bz2 |
Update the C++ backend to use the new ArrayRef'ified APIs. Patch by arrowdodger!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139124 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index dc3a131..27e9405 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -1086,8 +1086,7 @@ void CppWriter::printInstruction(const Instruction *I, << getOpName(inv->getCalledFunction()) << ", " << getOpName(inv->getNormalDest()) << ", " << getOpName(inv->getUnwindDest()) << ", " - << iName << "_params.begin(), " - << iName << "_params.end(), \""; + << iName << "_params, \""; printEscapedString(inv->getName()); Out << "\", " << bbname << ");"; nl(Out) << iName << "->setCallingConv("; @@ -1409,7 +1408,7 @@ void CppWriter::printInstruction(const Instruction *I, Out << "ExtractValueInst* " << getCppName(evi) << " = ExtractValueInst::Create(" << opNames[0] << ", " - << iName << "_indices.begin(), " << iName << "_indices.end(), \""; + << iName << "_indices, \""; printEscapedString(evi->getName()); Out << "\", " << bbname << ");"; break; @@ -1426,7 +1425,7 @@ void CppWriter::printInstruction(const Instruction *I, Out << "InsertValueInst* " << getCppName(ivi) << " = InsertValueInst::Create(" << opNames[0] << ", " << opNames[1] << ", " - << iName << "_indices.begin(), " << iName << "_indices.end(), \""; + << iName << "_indices, \""; printEscapedString(ivi->getName()); Out << "\", " << bbname << ");"; break; |