diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-03-11 16:41:23 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-03-11 16:41:23 +0000 |
commit | 7862097a45cbeb4fcd05c3b27cf564533e57a4b6 (patch) | |
tree | bdf12550fe45236083e80ce08ddc336d94a83b1c | |
parent | 96bcdae1a5c082808cb8b816aeb55f193c26782c (diff) | |
download | bcm5719-llvm-7862097a45cbeb4fcd05c3b27cf564533e57a4b6.tar.gz bcm5719-llvm-7862097a45cbeb4fcd05c3b27cf564533e57a4b6.zip |
Yet more MSVC fixes.
llvm-svn: 263253
-rw-r--r-- | lld/ELF/Writer.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 0bfea0bf847..1a85b8d0ddc 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -547,7 +547,8 @@ static bool shouldKeepInSymtab(const elf::ObjectFile<ELFT> &File, template <class ELFT> void Writer<ELFT>::copyLocalSymbols() { if (!Out<ELFT>::SymTab) return; - for (const std::unique_ptr<ObjectFile<ELFT>> &F : Symtab.getObjectFiles()) { + for (const std::unique_ptr<elf::ObjectFile<ELFT>> &F : + Symtab.getObjectFiles()) { for (SymbolBody *B : F->getLocalSymbols()) { auto *L = cast<DefinedRegular<ELFT>>(B); const Elf_Sym &Sym = L->Sym; @@ -951,7 +952,8 @@ template <class ELFT> bool Writer<ELFT>::createSections() { // Create output sections for input object file sections. std::vector<OutputSectionBase<ELFT> *> RegularSections; OutputSectionFactory<ELFT> Factory; - for (const std::unique_ptr<ObjectFile<ELFT>> &F : Symtab.getObjectFiles()) { + for (const std::unique_ptr<elf::ObjectFile<ELFT>> &F : + Symtab.getObjectFiles()) { for (InputSectionBase<ELFT> *C : F->getSections()) { if (isDiscarded(C)) { reportDiscarded(C, F); @@ -1011,7 +1013,8 @@ template <class ELFT> bool Writer<ELFT>::createSections() { // Scan relocations. This must be done after every symbol is declared so that // we can correctly decide if a dynamic relocation is needed. - for (const std::unique_ptr<ObjectFile<ELFT>> &F : Symtab.getObjectFiles()) { + for (const std::unique_ptr<elf::ObjectFile<ELFT>> &F : + Symtab.getObjectFiles()) { for (InputSectionBase<ELFT> *C : F->getSections()) { if (isDiscarded(C)) continue; |