diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-15 15:48:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-15 15:48:06 +0000 |
commit | 852b4d4bf4aa6b80298a60f76092b80c8bd1efad (patch) | |
tree | 022be3ecf6bd9548da544b741bc59eaa4ffcd488 /tools | |
parent | 7db7fa0828bc4ac375032a847b3fd530cef131e2 (diff) | |
download | external_llvm-852b4d4bf4aa6b80298a60f76092b80c8bd1efad.zip external_llvm-852b4d4bf4aa6b80298a60f76092b80c8bd1efad.tar.gz external_llvm-852b4d4bf4aa6b80298a60f76092b80c8bd1efad.tar.bz2 |
Replace more a*'s with arg_*'s, thanks to Gabor Greif!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20615 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bugpoint/CrashDebugger.cpp | 4 | ||||
-rw-r--r-- | tools/bugpoint/ExtractFunction.cpp | 4 | ||||
-rw-r--r-- | tools/bugpoint/Miscompilation.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tools/bugpoint/CrashDebugger.cpp b/tools/bugpoint/CrashDebugger.cpp index a8e5e98..4d8011d 100644 --- a/tools/bugpoint/CrashDebugger.cpp +++ b/tools/bugpoint/CrashDebugger.cpp @@ -265,10 +265,10 @@ static bool DebugACrash(BugDriver &BD, bool (*TestFn)(BugDriver &, Module *)) { // 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); diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp index 0eecc49..1c7225d 100644 --- a/tools/bugpoint/ExtractFunction.cpp +++ b/tools/bugpoint/ExtractFunction.cpp @@ -183,13 +183,13 @@ Module *llvm::SplitFunctionsOutOfModule(Module *M, // 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 diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp index 31b75d0..e72563b 100644 --- a/tools/bugpoint/Miscompilation.cpp +++ b/tools/bugpoint/Miscompilation.cpp @@ -232,7 +232,7 @@ static void DisambiguateGlobalSymbols(Module *M) { // 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)); |