[LLD][COFF] More detailed information for /failifmismatch
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Wed, 6 Mar 2019 20:18:38 +0000 (20:18 +0000)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Wed, 6 Mar 2019 20:18:38 +0000 (20:18 +0000)
commitd8ec81059eb1e3737f98b45027750b210e5c96b5
tree7d11d0d26709e3a58aa01039f094045e8574ca7d
parent05efe0fdc472e1f57e36b7f42476946c59c7128b
[LLD][COFF] More detailed information for /failifmismatch

When mismatched #pragma detect_mismatch declarations occur, now print the conflicting OBJs.

  lld-link: error: /failifmismatch: mismatch detected for 'TEST':
  >>> test.obj has value 1
  >>> test2.obj has value 2

Fixes PR38579

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

llvm-svn: 355543
lld/COFF/Config.h
lld/COFF/Driver.cpp
lld/COFF/Driver.h
lld/COFF/DriverUtils.cpp
lld/COFF/SymbolTable.cpp
lld/test/COFF/Inputs/failmismatch1.ll [new file with mode: 0644]
lld/test/COFF/Inputs/failmismatch2.ll [new file with mode: 0644]
lld/test/COFF/failifmismatch.test