llvm/tools/llvm-link
Rafael Espindola f362d3a729 Don't verify inputs to the Linker if ODR merging.
This fixes pr28072.

The point, as Duncan pointed out, is that the file is already
partially linked by just reading it.

Long term I think the solution is to make metadata owned by the module
and then the linker will lazily read it and be in charge of all the
linking. Running a verifier in each input will defeat the lazy
loading, but will be legal.

Right now we are at the unfortunate position that to support odr
merging we cannot verify the inputs, which mildly annoying (see test
update).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274148 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-29 18:31:48 +00:00
..
CMakeLists.txt Add a dependency from llvm-link to TransformUtils following r263860 2016-03-19 03:12:54 +00:00
llvm-link.cpp Don't verify inputs to the Linker if ODR merging. 2016-06-29 18:31:48 +00:00
LLVMBuild.txt Add a dependency from llvm-link to TransformUtils following r263860 2016-03-19 03:12:54 +00:00