aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm2cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2007-09-04 17:15:07 +0000
committerDavid Greene <greened@obbligato.org>2007-09-04 17:15:07 +0000
commit418a04ec9bb10e73cd7f0e30ad8fddf7c637bdb9 (patch)
treed5b7af4f9b319d25e44a2771cd7d6397191fc74f /tools/llvm2cpp
parentf0e856077c7307679ece7fa5f6dee6ce12e03ec2 (diff)
downloadexternal_llvm-418a04ec9bb10e73cd7f0e30ad8fddf7c637bdb9.zip
external_llvm-418a04ec9bb10e73cd7f0e30ad8fddf7c637bdb9.tar.gz
external_llvm-418a04ec9bb10e73cd7f0e30ad8fddf7c637bdb9.tar.bz2
Revert this because the interface hasn't been updated yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41703 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm2cpp')
-rw-r--r--tools/llvm2cpp/CppWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm2cpp/CppWriter.cpp b/tools/llvm2cpp/CppWriter.cpp
index 0773339..0b7b0ee 100644
--- a/tools/llvm2cpp/CppWriter.cpp
+++ b/tools/llvm2cpp/CppWriter.cpp
@@ -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));