[llvm-commits] CVS: llvm/lib/Target/SparcV9/InternalGlobalMapper.cpp SparcV9AsmPrinter.cpp SparcV9RegInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 14 20:55:02 PST 2005
Changes in directory llvm/lib/Target/SparcV9:
InternalGlobalMapper.cpp updated: 1.5 -> 1.6
SparcV9AsmPrinter.cpp updated: 1.125 -> 1.126
SparcV9RegInfo.cpp updated: 1.138 -> 1.139
---
Log message:
This mega patch converts us from using Function::a{iterator|begin|end} to
using Function::arg_{iterator|begin|end}. Likewise Module::g* -> Module::global_*.
This patch is contributed by Gabor Greif, thanks!
---
Diffs of the changes: (+4 -4)
InternalGlobalMapper.cpp | 2 +-
SparcV9AsmPrinter.cpp | 2 +-
SparcV9RegInfo.cpp | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
Index: llvm/lib/Target/SparcV9/InternalGlobalMapper.cpp
diff -u llvm/lib/Target/SparcV9/InternalGlobalMapper.cpp:1.5 llvm/lib/Target/SparcV9/InternalGlobalMapper.cpp:1.6
--- llvm/lib/Target/SparcV9/InternalGlobalMapper.cpp:1.5 Mon Nov 29 18:22:59 2004
+++ llvm/lib/Target/SparcV9/InternalGlobalMapper.cpp Mon Mar 14 22:54:20 2005
@@ -52,7 +52,7 @@
GVVectorTy gvvector;
// Populate the vector with internal global values and their names.
- for (Module::giterator i = M.gbegin (), e = M.gend (); i != e; ++i)
+ for (Module::global_iterator i = M.global_begin (), e = M.global_end (); i != e; ++i)
maybeAddInternalValueToVector (gvvector, *i);
// Add an extra global for _llvm_internalGlobals itself (null,
// because it's not internal)
Index: llvm/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
diff -u llvm/lib/Target/SparcV9/SparcV9AsmPrinter.cpp:1.125 llvm/lib/Target/SparcV9/SparcV9AsmPrinter.cpp:1.126
--- llvm/lib/Target/SparcV9/SparcV9AsmPrinter.cpp:1.125 Thu Dec 16 10:47:03 2004
+++ llvm/lib/Target/SparcV9/SparcV9AsmPrinter.cpp Mon Mar 14 22:54:20 2005
@@ -768,7 +768,7 @@
void SparcV9AsmPrinter::emitGlobals(const Module &M) {
// Output global variables...
- for (Module::const_giterator GI = M.gbegin(), GE = M.gend(); GI != GE; ++GI)
+ for (Module::const_global_iterator GI = M.global_begin(), GE = M.global_end(); GI != GE; ++GI)
if (! GI->isExternal()) {
assert(GI->hasInitializer());
if (GI->isConstant())
Index: llvm/lib/Target/SparcV9/SparcV9RegInfo.cpp
diff -u llvm/lib/Target/SparcV9/SparcV9RegInfo.cpp:1.138 llvm/lib/Target/SparcV9/SparcV9RegInfo.cpp:1.139
--- llvm/lib/Target/SparcV9/SparcV9RegInfo.cpp:1.138 Tue Aug 24 01:41:40 2004
+++ llvm/lib/Target/SparcV9/SparcV9RegInfo.cpp Mon Mar 14 22:54:20 2005
@@ -374,7 +374,7 @@
// Count the arguments, *ignoring* whether they are int or FP args.
// Use this common arg numbering to pick the right int or fp register.
unsigned argNo=0;
- for(Function::const_aiterator I = Meth->abegin(), E = Meth->aend();
+ for(Function::const_arg_iterator I = Meth->arg_begin(), E = Meth->arg_end();
I != E; ++I, ++argNo) {
LiveRange *LR = LRI.getLiveRangeForValue(I);
assert(LR && "No live range found for method arg");
@@ -410,7 +410,7 @@
// for each argument
// for each argument. count INT and FP arguments separately.
unsigned argNo=0, intArgNo=0, fpArgNo=0;
- for(Function::const_aiterator I = Meth->abegin(), E = Meth->aend();
+ for(Function::const_arg_iterator I = Meth->arg_begin(), E = Meth->arg_end();
I != E; ++I, ++argNo) {
// get the LR of arg
LiveRange *LR = LRI.getLiveRangeForValue(I);
More information about the llvm-commits
mailing list