diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-04-06 13:22:41 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-04-06 13:22:41 +0000 |
commit | f47657301be6ca744402e783e830f23e83833ec9 (patch) | |
tree | 5ac39577e42a68a5c13bdf8afd8e8dd621da9bc1 /lld/ELF/OutputSections.cpp | |
parent | 72b4a4a3308312af1b51d8cebc59b090a28e2ebc (diff) | |
download | bcm5719-llvm-f47657301be6ca744402e783e830f23e83833ec9.tar.gz bcm5719-llvm-f47657301be6ca744402e783e830f23e83833ec9.zip |
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
Diffstat (limited to 'lld/ELF/OutputSections.cpp')
-rw-r--r-- | lld/ELF/OutputSections.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 6a2e4933de2..18d1ed47350 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -1501,7 +1501,7 @@ SymbolTableSection<ELFT>::getOutputSection(SymbolBody *Sym) { return Out<ELFT>::Bss; break; case SymbolBody::UndefinedElfKind: - case SymbolBody::UndefinedKind: + case SymbolBody::UndefinedBitcodeKind: case SymbolBody::LazyKind: break; case SymbolBody::DefinedBitcodeKind: |