[llvm-commits] CVS: llvm/tools/bugpoint/CrashDebugger.cpp ExtractFunction.cpp Miscompilation.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Mar 15 07:48:19 PST 2005
Changes in directory llvm/tools/bugpoint:
CrashDebugger.cpp updated: 1.40 -> 1.41
ExtractFunction.cpp updated: 1.42 -> 1.43
Miscompilation.cpp updated: 1.61 -> 1.62
---
Log message:
Replace more a*'s with arg_*'s, thanks to Gabor Greif!
---
Diffs of the changes: (+5 -5)
CrashDebugger.cpp | 4 ++--
ExtractFunction.cpp | 4 ++--
Miscompilation.cpp | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
Index: llvm/tools/bugpoint/CrashDebugger.cpp
diff -u llvm/tools/bugpoint/CrashDebugger.cpp:1.40 llvm/tools/bugpoint/CrashDebugger.cpp:1.41
--- llvm/tools/bugpoint/CrashDebugger.cpp:1.40 Sat Jan 22 10:30:58 2005
+++ llvm/tools/bugpoint/CrashDebugger.cpp Tue Mar 15 09:48:06 2005
@@ -265,10 +265,10 @@
// See if we can get away with nuking all of the global variable initializers
// in the program...
- if (BD.getProgram()->gbegin() != BD.getProgram()->gend()) {
+ if (BD.getProgram()->global_begin() != BD.getProgram()->global_end()) {
Module *M = CloneModule(BD.getProgram());
bool DeletedInit = false;
- 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)
if (I->hasInitializer()) {
I->setInitializer(0);
I->setLinkage(GlobalValue::ExternalLinkage);
Index: llvm/tools/bugpoint/ExtractFunction.cpp
diff -u llvm/tools/bugpoint/ExtractFunction.cpp:1.42 llvm/tools/bugpoint/ExtractFunction.cpp:1.43
--- llvm/tools/bugpoint/ExtractFunction.cpp:1.42 Wed Feb 23 00:12:11 2005
+++ llvm/tools/bugpoint/ExtractFunction.cpp Tue Mar 15 09:48:06 2005
@@ -183,13 +183,13 @@
// between the two modules will work.
for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I)
I->setLinkage(GlobalValue::ExternalLinkage);
- 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)
I->setLinkage(GlobalValue::ExternalLinkage);
Module *New = CloneModule(M);
// Make sure global initializers exist only in the safe module (CBE->.so)
- for (Module::giterator I = New->gbegin(), E = New->gend(); I != E; ++I)
+ for (Module::global_iterator I = New->global_begin(), E = New->global_end(); I != E; ++I)
I->setInitializer(0); // Delete the initializer to make it external
// Remove the Test functions from the Safe module
Index: llvm/tools/bugpoint/Miscompilation.cpp
diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.61 llvm/tools/bugpoint/Miscompilation.cpp:1.62
--- llvm/tools/bugpoint/Miscompilation.cpp:1.61 Tue Mar 15 01:02:26 2005
+++ llvm/tools/bugpoint/Miscompilation.cpp Tue Mar 15 09:48:06 2005
@@ -232,7 +232,7 @@
// mangler is used by the two code generators), but having symbols with the
// same name causes warnings to be emitted by the code generator.
Mangler Mang(*M);
- 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)
I->setName(Mang.getValueName(I));
for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I)
I->setName(Mang.getValueName(I));
More information about the llvm-commits
mailing list