OSDN Git Service

MC: Remove dead code. NFCI.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 8 May 2018 22:59:05 +0000 (22:59 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 8 May 2018 22:59:05 +0000 (22:59 +0000)
We should never emit an SHT_DYNSYM into an object file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331821 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/ELFObjectWriter.cpp

index ec4f86f..2255d05 100644 (file)
@@ -1149,7 +1149,6 @@ void ELFObjectWriter::writeSection(const SectionIndexMapTy &SectionIndexMap,
   }
 
   case ELF::SHT_SYMTAB:
-  case ELF::SHT_DYNSYM:
     sh_link = StringTableIndex;
     sh_info = LastLocalSymbolIndex;
     break;