[PATCH] D58910: [LLD][COFF] More detailed information for /failifmismatch
Alexandre Ganea via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 4 08:26:56 PST 2019
aganea created this revision.
aganea added reviewers: ruiu, rnk.
Herald added a project: LLVM.
When mismatched `#pragma detect_mismatch` declarations occur, now print the location of the conflicting OBJs.
MSVC prints:
test2.obj : error LNK2038: mismatch detected for 'TEST': value '2' doesn't match value '1' in test.obj
test.exe : fatal error LNK1319: 1 mismatches detected
LLD now prints:
lld-link: error: /failifmismatch: mismatch detected for 'TEST':
>>> test.obj: has value 1
>>> test2.obj: has value 2
Fixes PR38579
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D58910
Files:
COFF/Config.h
COFF/Driver.cpp
COFF/Driver.h
COFF/DriverUtils.cpp
COFF/SymbolTable.cpp
test/COFF/Inputs/failmismatch1.bc
test/COFF/Inputs/failmismatch2.bc
test/COFF/failifmismatch.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58910.189155.patch
Type: text/x-patch
Size: 9445 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190304/222a8a34/attachment.bin>
More information about the llvm-commits
mailing list