forked from OSchip/llvm-project
Return true from Resolver::resolve() on success.
llvm-svn: 192422
This commit is contained in:
parent
d5d16d57eb
commit
ee366042e9
|
@ -475,12 +475,12 @@ bool Resolver::resolve() {
|
|||
this->deadStripOptimize();
|
||||
if (this->checkUndefines(false)) {
|
||||
if (!_context.allowRemainingUndefines())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
this->removeCoalescedAwayAtoms();
|
||||
this->linkTimeOptimize();
|
||||
this->_result.addAtoms(_atoms);
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
void Resolver::MergedFile::addAtom(const Atom& atom) {
|
||||
|
|
|
@ -107,7 +107,7 @@ bool Driver::link(LinkingContext &context, raw_ostream &diagnostics) {
|
|||
// Do core linking.
|
||||
ScopedTask resolveTask(getDefaultDomain(), "Resolve");
|
||||
Resolver resolver(context);
|
||||
if (resolver.resolve()) {
|
||||
if (!resolver.resolve()) {
|
||||
if (!context.allowRemainingUndefines())
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue