llvm-lto2: Simpler workaround for PR30396.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 30 Nov 2016 23:19:05 +0000 (23:19 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 30 Nov 2016 23:19:05 +0000 (23:19 +0000)
commita5b71649b3607363943d620e728e5fd0266f401a
treee7aa0109855cf71564fccfb06e40428c640c6f88
parentcd21d541397eadab33d94b3a0c476f96afc3477f
llvm-lto2: Simpler workaround for PR30396.

Maintain the command line resolutions as a map to a list of resolutions
rather than a single resolution, and apply the resolutions in the order
observed. This is not only simpler but allows us to test the scenario where
the two symbols have different resolutions.

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

llvm-svn: 288288
llvm/test/ThinLTO/X86/module_asm_glob.ll
llvm/tools/llvm-lto2/llvm-lto2.cpp