Revert this because the interface hasn't been updated yet.
authorDavid Greene <greened@obbligato.org>
Tue, 4 Sep 2007 17:15:07 +0000 (17:15 +0000)
committerDavid Greene <greened@obbligato.org>
Tue, 4 Sep 2007 17:15:07 +0000 (17:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41703 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm2cpp/CppWriter.cpp

index 077333956a42940be27209a0445c696bbabcedc0..0b7b0eea0025f8a726ce18d4d79893d24a407c2f 100644 (file)
@@ -787,8 +787,8 @@ void CppWriter::printConstant(const Constant *CV) {
       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));