Change the type hierarchy for undefined symbols.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 6 Apr 2016 13:22:41 +0000 (13:22 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 6 Apr 2016 13:22:41 +0000 (13:22 +0000)
commitf47657301be6ca744402e783e830f23e83833ec9
tree5ac39577e42a68a5c13bdf8afd8e8dd621da9bc1
parent72b4a4a3308312af1b51d8cebc59b090a28e2ebc
Change the type hierarchy for undefined symbols.

We have to differentiate undefined symbols from bitcode and undefined
symbols from other sources.

Undefined symbols from bitcode should not inhibit the symbol being
internalized. Undefined symbols from other sources should.

llvm-svn: 265536
lld/ELF/InputFiles.cpp
lld/ELF/OutputSections.cpp
lld/ELF/SymbolTable.cpp
lld/ELF/SymbolTable.h
lld/ELF/Symbols.cpp
lld/ELF/Symbols.h
lld/ELF/Writer.cpp
lld/test/ELF/lto/Inputs/internalize-undef.ll [new file with mode: 0644]
lld/test/ELF/lto/internalize-undef.ll [new file with mode: 0644]