[PATCH] D60628: [LLD] [COFF] Link crtend.o as the last object file
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 14 23:34:30 PDT 2019
ruiu added a comment.
I don't think you have to call std::stable_sort. Something like this should suffice.
for (size_t I = 0, E = InputFiles.size(); I != E; ++I) {
InputFile *File = InputFiles[I];
if (File.getName() != "crtend.o")
continue;
InputFiles.erase(i);
InputFiles.push_back(File);
break;
}
Repository:
rLLD LLVM Linker
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60628/new/
https://reviews.llvm.org/D60628
More information about the llvm-commits
mailing list