Try to fix the windows build.

llvm-svn: 309162
This commit is contained in:
Rafael Espindola 2017-07-26 19:57:40 +00:00
parent b4b485370c
commit aaa8e433ad

View File

@ -893,7 +893,7 @@ template <class ELFT> static void sortBySymbolsOrder() {
// Build a map from sections to their priorities.
DenseMap<SectionBase *, int> SectionOrder;
for (elf::ObjectFile<ELFT> *File : ObjectFile<ELFT>::Instances) {
for (elf::ObjectFile<ELFT> *File : elf::ObjectFile<ELFT>::Instances) {
for (SymbolBody *Body : File->getSymbols()) {
auto *D = dyn_cast<DefinedRegular>(Body);
if (!D || !D->Section)