From ac458405bfddc8cca79d3508d2b66ef9d4144d9f Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 12 Feb 2016 21:36:59 +0000 Subject: [PATCH] Trying to fix the MSVC build. llvm-svn: 260743 --- lld/ELF/InputFiles.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 9d240a7..b8e3629 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -91,11 +91,11 @@ elf2::ObjectFile::ObjectFile(MemoryBufferRef M) template typename elf2::ObjectFile::Elf_Sym_Range -ObjectFile::getLocalSymbols() { +elf2::ObjectFile::getLocalSymbols() { return this->getSymbolsHelper(true); } -template uint32_t ObjectFile::getMipsGp0() const { +template uint32_t elf2::ObjectFile::getMipsGp0() const { if (MipsReginfo) return MipsReginfo->Reginfo->ri_gp_value; return 0; @@ -103,7 +103,7 @@ template uint32_t ObjectFile::getMipsGp0() const { template const typename elf2::ObjectFile::Elf_Sym * -ObjectFile::getLocalSymbol(uintX_t SymIndex) { +elf2::ObjectFile::getLocalSymbol(uintX_t SymIndex) { uint32_t FirstNonLocal = this->Symtab->sh_info; if (SymIndex >= FirstNonLocal) return nullptr; @@ -139,7 +139,7 @@ StringRef elf2::ObjectFile::getShtGroupSignature(const Elf_Shdr &Sec) { template ArrayRef::uint32_X> -ObjectFile::getShtGroupEntries(const Elf_Shdr &Sec) { +elf2::ObjectFile::getShtGroupEntries(const Elf_Shdr &Sec) { const ELFFile &Obj = this->ELFObj; ErrorOr> EntriesOrErr = Obj.template getSectionContentsAsArray(&Sec); -- 2.7.4