]> granicus.if.org Git - llvm/commit
lld-link: Make "duplicate resource" error message a bit more concise
authorNico Weber <nicolasweber@gmx.de>
Thu, 2 May 2019 01:52:24 +0000 (01:52 +0000)
committerNico Weber <nicolasweber@gmx.de>
Thu, 2 May 2019 01:52:24 +0000 (01:52 +0000)
commitd49213afe09393c9c2c6e395ddc909191188a513
tree37aa82a3a2dff22c626d66b076a9bacebc6af6d8
parent5993a0e6f3dbf09db1779bfe518714fe48801b39
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359749 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/WindowsResource.h
lib/Object/WindowsResource.cpp