forked from OSchip/llvm-project
Remove "this->".
For most member function calls we do not use "this->" in this file. Remove the rest for consistency. llvm-svn: 205550
This commit is contained in:
parent
ca61be3ac2
commit
2b2ac91fab
|
@ -296,7 +296,7 @@ void Resolver::doAbsoluteAtom(const AbsoluteAtom &atom) {
|
||||||
// utility to add a vector of atoms
|
// utility to add a vector of atoms
|
||||||
void Resolver::addAtoms(const std::vector<const DefinedAtom *> &newAtoms) {
|
void Resolver::addAtoms(const std::vector<const DefinedAtom *> &newAtoms) {
|
||||||
for (const DefinedAtom *newAtom : newAtoms)
|
for (const DefinedAtom *newAtom : newAtoms)
|
||||||
this->doDefinedAtom(*newAtom);
|
doDefinedAtom(*newAtom);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Keep adding atoms until _context.nextFile() returns an error. This function
|
// Keep adding atoms until _context.nextFile() returns an error. This function
|
||||||
|
@ -360,7 +360,7 @@ void Resolver::markLive(const Atom &atom) {
|
||||||
if (const DefinedAtom *defAtom = dyn_cast<DefinedAtom>(&atom))
|
if (const DefinedAtom *defAtom = dyn_cast<DefinedAtom>(&atom))
|
||||||
for (const Reference *ref : *defAtom)
|
for (const Reference *ref : *defAtom)
|
||||||
if (const Atom *target = ref->target())
|
if (const Atom *target = ref->target())
|
||||||
this->markLive(*target);
|
markLive(*target);
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove all atoms not actually used
|
// remove all atoms not actually used
|
||||||
|
@ -391,7 +391,7 @@ void Resolver::deadStripOptimize() {
|
||||||
|
|
||||||
// mark all roots as live, and recursively all atoms they reference
|
// mark all roots as live, and recursively all atoms they reference
|
||||||
for (const Atom *dsrAtom : _deadStripRoots)
|
for (const Atom *dsrAtom : _deadStripRoots)
|
||||||
this->markLive(*dsrAtom);
|
markLive(*dsrAtom);
|
||||||
|
|
||||||
// now remove all non-live atoms from _atoms
|
// now remove all non-live atoms from _atoms
|
||||||
_atoms.erase(
|
_atoms.erase(
|
||||||
|
@ -457,15 +457,15 @@ void Resolver::removeCoalescedAwayAtoms() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Resolver::resolve() {
|
bool Resolver::resolve() {
|
||||||
if (!this->resolveUndefines())
|
if (!resolveUndefines())
|
||||||
return false;
|
return false;
|
||||||
this->updateReferences();
|
updateReferences();
|
||||||
this->deadStripOptimize();
|
deadStripOptimize();
|
||||||
if (this->checkUndefines())
|
if (checkUndefines())
|
||||||
if (!_context.allowRemainingUndefines())
|
if (!_context.allowRemainingUndefines())
|
||||||
return false;
|
return false;
|
||||||
this->removeCoalescedAwayAtoms();
|
removeCoalescedAwayAtoms();
|
||||||
this->_result->addAtoms(_atoms);
|
_result->addAtoms(_atoms);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -497,7 +497,7 @@ void Resolver::MergedFile::addAtoms(std::vector<const Atom *> &all) {
|
||||||
<< ", name="
|
<< ", name="
|
||||||
<< atom->name()
|
<< atom->name()
|
||||||
<< "\n");
|
<< "\n");
|
||||||
this->addAtom(*atom);
|
addAtom(*atom);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue