HomePhabricator

lld-link: Make "duplicate resource" error message a bit more concise

Authored by thakis on May 1 2019, 6:52 PM.

Description

lld-link: Make "duplicate resource" error message a bit more concise

Reduces the error message from:

lld-link: error: failed to parse .res file: duplicate resource: type STRINGTABLE (ID 6)/name ID 3/language 1033, in test1.res and in test2.res

To:

lld-link: error: duplicate resource: type STRINGTABLE (ID 6)/name ID 3/language 1033, in test1.res and in test2.res

Make sure every error message emitted by cvtres contains the name of at
least one ".res" file, so that removing the "failed to parse .res file"
string doesn't lose information.

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

llvm-svn: 359749