[lld] r263012 - Simplify: SHN_ABS is >= SHN_LORESERVE.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 9 06:31:19 PST 2016
Author: rafael
Date: Wed Mar 9 08:31:18 2016
New Revision: 263012
URL: http://llvm.org/viewvc/llvm-project?rev=263012&view=rev
Log:
Simplify: SHN_ABS is >= SHN_LORESERVE.
Modified:
lld/trunk/ELF/InputFiles.cpp
Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=263012&r1=263011&r2=263012&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Wed Mar 9 08:31:18 2016
@@ -65,7 +65,7 @@ uint32_t ELFFileBase<ELFT>::getSectionIn
uint32_t I = Sym.st_shndx;
if (I == ELF::SHN_XINDEX)
return ELFObj.getExtendedSymbolTableIndex(&Sym, Symtab, SymtabSHNDX);
- if (I >= ELF::SHN_LORESERVE || I == ELF::SHN_ABS)
+ if (I >= ELF::SHN_LORESERVE)
return 0;
return I;
}
More information about the llvm-commits
mailing list