Try to fix MSVC build.

llvm-svn: 305514
This commit is contained in:
Rafael Espindola 2017-06-15 22:03:06 +00:00
parent 072ccb7239
commit c54b1c8b4d
1 changed files with 3 additions and 3 deletions

View File

@ -1009,7 +1009,7 @@ findOrphanPos(std::vector<BaseCommand *>::iterator B,
break;
}
auto J = std::find_if(
make_reverse_iterator(I), make_reverse_iterator(B),
llvm::make_reverse_iterator(I), llvm::make_reverse_iterator(B),
[](BaseCommand *Cmd) { return isa<OutputSectionCommand>(Cmd); });
I = J.base();
while (I != E && shouldSkip(*I))
@ -1040,8 +1040,8 @@ template <class ELFT> void Writer<ELFT>::sortSections() {
return isa<OutputSectionCommand>(Base);
};
I = std::find_if(I, E, IsSection);
E = std::find_if(make_reverse_iterator(E), make_reverse_iterator(I),
IsSection)
E = std::find_if(llvm::make_reverse_iterator(E),
llvm::make_reverse_iterator(I), IsSection)
.base();
std::stable_sort(I, E, compareSections);
return;