[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp PPC64ISelSimple.cpp PowerPCAsmPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 14 20:55:03 PST 2005
Changes in directory llvm/lib/Target/PowerPC:
PPC32ISelSimple.cpp updated: 1.122 -> 1.123
PPC64ISelSimple.cpp updated: 1.16 -> 1.17
PowerPCAsmPrinter.cpp updated: 1.71 -> 1.72
---
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: (+7 -7)
PPC32ISelSimple.cpp | 2 +-
PPC64ISelSimple.cpp | 2 +-
PowerPCAsmPrinter.cpp | 10 +++++-----
3 files changed, 7 insertions(+), 7 deletions(-)
Index: llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp
diff -u llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp:1.122 llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp:1.123
--- llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp:1.122 Tue Mar 8 16:53:09 2005
+++ llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp Mon Mar 14 22:54:19 2005
@@ -734,7 +734,7 @@
MachineFrameInfo *MFI = F->getFrameInfo();
- for (Function::aiterator I = Fn.abegin(), E = Fn.aend(); I != E; ++I) {
+ for (Function::arg_iterator I = Fn.arg_begin(), E = Fn.arg_end(); I != E; ++I) {
bool ArgLive = !I->use_empty();
unsigned Reg = ArgLive ? getReg(*I) : 0;
int FI; // Frame object index
Index: llvm/lib/Target/PowerPC/PPC64ISelSimple.cpp
diff -u llvm/lib/Target/PowerPC/PPC64ISelSimple.cpp:1.16 llvm/lib/Target/PowerPC/PPC64ISelSimple.cpp:1.17
--- llvm/lib/Target/PowerPC/PPC64ISelSimple.cpp:1.16 Thu Oct 7 17:30:03 2004
+++ llvm/lib/Target/PowerPC/PPC64ISelSimple.cpp Mon Mar 14 22:54:19 2005
@@ -590,7 +590,7 @@
MachineFrameInfo *MFI = F->getFrameInfo();
- for (Function::aiterator I = Fn.abegin(), E = Fn.aend(); I != E; ++I) {
+ for (Function::arg_iterator I = Fn.arg_begin(), E = Fn.arg_end(); I != E; ++I) {
bool ArgLive = !I->use_empty();
unsigned Reg = ArgLive ? getReg(*I) : 0;
int FI; // Frame object index
Index: llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
diff -u llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp:1.71 llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp:1.72
--- llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp:1.71 Sun Dec 12 14:36:19 2004
+++ llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp Mon Mar 14 22:54:19 2005
@@ -459,7 +459,7 @@
std::string CurSection;
// Print out module-level global variables here.
- for (Module::const_giterator I = M.gbegin(), E = M.gend(); I != E; ++I)
+ for (Module::const_global_iterator I = M.global_begin(), E = M.global_end(); I != E; ++I)
if (I->hasInitializer()) { // External global require no code
O << '\n';
std::string name = Mang->getValueName(I);
@@ -646,7 +646,7 @@
<< "\t.csect .text[PR]\n";
// Print out module-level global variables
- for (Module::const_giterator I = M.gbegin(), E = M.gend(); I != E; ++I) {
+ for (Module::const_global_iterator I = M.global_begin(), E = M.global_end(); I != E; ++I) {
if (!I->hasInitializer())
continue;
@@ -664,8 +664,8 @@
}
// Output labels for globals
- if (M.gbegin() != M.gend()) O << "\t.toc\n";
- for (Module::const_giterator I = M.gbegin(), E = M.gend(); I != E; ++I) {
+ if (M.global_begin() != M.global_end()) O << "\t.toc\n";
+ for (Module::const_global_iterator I = M.global_begin(), E = M.global_end(); I != E; ++I) {
const GlobalVariable *GV = I;
// Do not output labels for unused variables
if (GV->isExternal() && GV->use_begin() == GV->use_end())
@@ -687,7 +687,7 @@
bool AIXAsmPrinter::doFinalization(Module &M) {
const TargetData &TD = TM.getTargetData();
// Print out module-level global variables
- for (Module::const_giterator I = M.gbegin(), E = M.gend(); I != E; ++I) {
+ for (Module::const_global_iterator I = M.global_begin(), E = M.global_end(); I != E; ++I) {
if (I->hasInitializer() || I->hasExternalLinkage())
continue;
More information about the llvm-commits
mailing list