[llvm-commits] [llvm] r41703 - /llvm/trunk/tools/llvm2cpp/CppWriter.cpp
David Greene
greened at obbligato.org
Tue Sep 4 10:15:07 PDT 2007
Author: greened
Date: Tue Sep 4 12:15:07 2007
New Revision: 41703
URL: http://llvm.org/viewvc/llvm-project?rev=41703&view=rev
Log:
Revert this because the interface hasn't been updated yet.
Modified:
llvm/trunk/tools/llvm2cpp/CppWriter.cpp
Modified: llvm/trunk/tools/llvm2cpp/CppWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm2cpp/CppWriter.cpp?rev=41703&r1=41702&r2=41703&view=diff
==============================================================================
--- llvm/trunk/tools/llvm2cpp/CppWriter.cpp (original)
+++ llvm/trunk/tools/llvm2cpp/CppWriter.cpp Tue Sep 4 12:15:07 2007
@@ -787,8 +787,8 @@
Out << "Constant* " << constName
<< " = ConstantExpr::getGetElementPtr("
<< getCppName(CE->getOperand(0)) << ", "
- << constName << "_indices.begin(), "
- << constName << "_indices.end()"
+ << "&" << constName << "_indices[0], "
+ << constName << "_indices.size()"
<< " );";
} else if (CE->isCast()) {
printConstant(CE->getOperand(0));
More information about the llvm-commits
mailing list