[llvm-commits] [llvm] r139124 - /llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
Nick Lewycky
nicholas at mxc.ca
Mon Sep 5 11:50:59 PDT 2011
Author: nicholas
Date: Mon Sep 5 13:50:59 2011
New Revision: 139124
URL: http://llvm.org/viewvc/llvm-project?rev=139124&view=rev
Log:
Update the C++ backend to use the new ArrayRef'ified APIs. Patch by arrowdodger!
Modified:
llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
Modified: llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp?rev=139124&r1=139123&r2=139124&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp (original)
+++ llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp Mon Sep 5 13:50:59 2011
@@ -1086,8 +1086,7 @@
<< 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 @@
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 @@
Out << "InsertValueInst* " << getCppName(ivi)
<< " = InsertValueInst::Create(" << opNames[0]
<< ", " << opNames[1] << ", "
- << iName << "_indices.begin(), " << iName << "_indices.end(), \"";
+ << iName << "_indices, \"";
printEscapedString(ivi->getName());
Out << "\", " << bbname << ");";
break;
More information about the llvm-commits
mailing list