[LTO] Handles commons in monolithic LTO
authorMehdi Amini <mehdi.amini@apple.com>
Mon, 22 Aug 2016 06:25:46 +0000 (06:25 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Mon, 22 Aug 2016 06:25:46 +0000 (06:25 +0000)
commitdc4c8cf9acbf7d70853b3d876b0c0f3090d46aac
treeda6598195ad457a40d242ee3719f714ac5d02926
parentd310b47c23024a8a9c46d5029984855404598369
[LTO] Handles commons in monolithic LTO

The gold-plugin was doing this internally, now the API is handling
commons correctly based on the given resolution.

Differential Revision: https://reviews.llvm.org/D23739

llvm-svn: 279417
llvm/include/llvm/LTO/LTO.h
llvm/lib/LTO/LTO.cpp
llvm/test/tools/llvm-lto2/Inputs/common.ll [new file with mode: 0644]
llvm/test/tools/llvm-lto2/common.ll [new file with mode: 0644]
llvm/tools/gold/gold-plugin.cpp