[llvm-commits] CVS: llvm-stacker/lib/compiler/StackerCompiler.cpp
Reid Spencer
reid at x10sys.com
Mon Feb 12 18:46:13 PST 2007
Changes in directory llvm-stacker/lib/compiler:
StackerCompiler.cpp updated: 1.33 -> 1.34
---
Log message:
Update for recent interface changes in GEP constructor.
---
Diffs of the changes: (+12 -9)
StackerCompiler.cpp | 21 ++++++++++++---------
1 files changed, 12 insertions(+), 9 deletions(-)
Index: llvm-stacker/lib/compiler/StackerCompiler.cpp
diff -u llvm-stacker/lib/compiler/StackerCompiler.cpp:1.33 llvm-stacker/lib/compiler/StackerCompiler.cpp:1.34
--- llvm-stacker/lib/compiler/StackerCompiler.cpp:1.33 Mon Feb 5 15:20:45 2007
+++ llvm-stacker/lib/compiler/StackerCompiler.cpp Mon Feb 12 20:45:57 2007
@@ -427,7 +427,8 @@
}
// Get the address of the indexed stack element
- GetElementPtrInst* gep = new GetElementPtrInst( TheStack, indexVec );
+ GetElementPtrInst* gep = new GetElementPtrInst(TheStack, &indexVec[0],
+ indexVec.size() );
bb->getInstList().push_back( gep ); // Put GEP in Block
return gep;
@@ -1518,7 +1519,8 @@
// Get address of op1'th element of the string
std::vector<Value*> indexVec;
indexVec.push_back( chr_idx );
- GetElementPtrInst* gep = new GetElementPtrInst( ptr, indexVec );
+ GetElementPtrInst* gep = new GetElementPtrInst( ptr, &indexVec[0],
+ indexVec.size() );
bb->getInstList().push_back( gep );
// Get the value and push it
@@ -1550,7 +1552,8 @@
// Get address of op2'th element of the string
std::vector<Value*> indexVec;
indexVec.push_back( chr_idx );
- GetElementPtrInst* gep = new GetElementPtrInst( ptr, indexVec );
+ GetElementPtrInst* gep = new GetElementPtrInst( ptr, &indexVec[0],
+ indexVec.size());
bb->getInstList().push_back( gep );
// Cast the value and put it
@@ -1600,7 +1603,7 @@
indexVec.push_back( Zero );
indexVec.push_back( Zero );
GetElementPtrInst* format_gep =
- new GetElementPtrInst( ChrFormat, indexVec );
+ new GetElementPtrInst( ChrFormat, &indexVec[0], indexVec.size() );
bb->getInstList().push_back( format_gep );
// Get the character to print (a tab)
@@ -1622,7 +1625,7 @@
indexVec.push_back( Zero );
indexVec.push_back( Zero );
GetElementPtrInst* format_gep =
- new GetElementPtrInst( ChrFormat, indexVec );
+ new GetElementPtrInst( ChrFormat, &indexVec[0], indexVec.size() );
bb->getInstList().push_back( format_gep );
// Get the character to print (a space)
@@ -1644,7 +1647,7 @@
indexVec.push_back( Zero );
indexVec.push_back( Zero );
GetElementPtrInst* format_gep =
- new GetElementPtrInst( ChrFormat, indexVec );
+ new GetElementPtrInst( ChrFormat, &indexVec[0], indexVec.size() );
bb->getInstList().push_back( format_gep );
// Get the character to print (a newline)
@@ -1742,7 +1745,7 @@
indexVec.push_back( Zero );
indexVec.push_back( Zero );
GetElementPtrInst* format_gep =
- new GetElementPtrInst( StrFormat, indexVec );
+ new GetElementPtrInst( StrFormat, &indexVec[0], indexVec.size() );
bb->getInstList().push_back( format_gep );
// Build function call arguments
std::vector<Value*> args;
@@ -1763,7 +1766,7 @@
indexVec.push_back( Zero );
indexVec.push_back( Zero );
GetElementPtrInst* format_gep =
- new GetElementPtrInst( NumFormat, indexVec );
+ new GetElementPtrInst( NumFormat, &indexVec[0], indexVec.size() );
bb->getInstList().push_back( format_gep );
// Build function call arguments
@@ -1786,7 +1789,7 @@
indexVec.push_back( Zero );
indexVec.push_back( Zero );
GetElementPtrInst* format_gep =
- new GetElementPtrInst( ChrFormat, indexVec );
+ new GetElementPtrInst( ChrFormat, &indexVec[0], indexVec.size() );
bb->getInstList().push_back( format_gep );
// Build function call arguments
More information about the llvm-commits
mailing list