[IRMover] Improve diagnostic messages for conflicting metadata
authorIgor Kudrin <ikudrin@accesssoftek.com>
Thu, 16 May 2019 05:23:13 +0000 (05:23 +0000)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Thu, 16 May 2019 05:23:13 +0000 (05:23 +0000)
commit1ff8b7bdf108c61bbcd1b3e0154ea4bab0b5cdaa
treef9f9ebd0f5aade6e5eca16ee93b323caafc8c808
parent11be78bc7abf469c2db2d631f11b02ec8cb9f3c5
[IRMover] Improve diagnostic messages for conflicting metadata

This does the similar for error messages as rL344011 has done for warnings.

With llvm::lto::LTO, the error might appear when LTO::run() is executed.
In that case, the calling code cannot know which module causes the error
and, subsequently, cannot hint the user.

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

llvm-svn: 360857
llvm/lib/Linker/IRMover.cpp
llvm/test/Linker/module-flags-5-a.ll
llvm/test/Linker/module-flags-6-a.ll
llvm/test/Linker/module-flags-7-a.ll