[llvm-commits] [llvm] r136138 - /llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp

Nicolas Geoffray nicolas.geoffray at lip6.fr
Tue Jul 26 13:52:25 PDT 2011


Author: geoffray
Date: Tue Jul 26 15:52:25 2011
New Revision: 136138

URL: http://llvm.org/viewvc/llvm-project?rev=136138&view=rev
Log:
Update generated code to use new API of GetElementPtrInst::Create.


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=136138&r1=136137&r2=136138&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp (original)
+++ llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp Tue Jul 26 15:52:25 2011
@@ -1240,8 +1240,7 @@
         nl(Out);
       }
       Out << "Instruction* " << iName << " = GetElementPtrInst::Create("
-          << opNames[0] << ", " << iName << "_indices.begin(), "
-          << iName << "_indices.end()";
+          << opNames[0] << ", " << iName << "_indices";
     }
     Out << ", \"";
     printEscapedString(gep->getName());





More information about the llvm-commits mailing list