Internalize common variables.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 31 Aug 2016 13:42:08 +0000 (13:42 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 31 Aug 2016 13:42:08 +0000 (13:42 +0000)
commit8db87291efb97d12fd4e229803a2ad790672023d
tree38a33fe8d6dcc8b401157b5160d77eb1c2649ccd
parent1b314fceb26919511f4914472400e291263baa67
Internalize common variables.

Before this lld was always creating common symbols itself. It worked,
but prevented them from being internalized when possible.

Now it preserves common symbols is the bitcode and they are internalized.

Fixes pr30184.

llvm-svn: 280242
lld/ELF/LTO.cpp
lld/ELF/SymbolTable.cpp
lld/test/ELF/lto/Inputs/common3.ll [new file with mode: 0644]
lld/test/ELF/lto/common2.ll
lld/test/ELF/lto/common3.ll [new file with mode: 0644]