mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Replace more a*'s with arg_*'s, thanks to Gabor Greif!
llvm-svn: 20615
This commit is contained in:
parent
d2411dc712
commit
354330cd68
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user