This is an archive of the discontinued LLVM Phabricator instance.

lld-link: Include the name of bad input files in several "input file is bad" diagnostics.
ClosedPublic

Authored by thakis on Aug 3 2016, 7:47 AM.

Details

Reviewers
ruiu
Summary

Also change a few getName() calls to getShortName() calls.

Diff Detail

Event Timeline

thakis updated this revision to Diff 66666.Aug 3 2016, 7:47 AM
thakis retitled this revision from to lld-link: Include the name of bad input files in several "input file is bad" diagnostics..
thakis updated this object.
thakis added a reviewer: ruiu.
thakis added a subscriber: llvm-commits.
ruiu added inline comments.Aug 3 2016, 10:56 AM
COFF/InputFiles.cpp
112

Does the final output message contain something like "failed to parse"?

thakis added inline comments.Aug 3 2016, 11:10 AM
COFF/InputFiles.cpp
112

For this line, previous:
failed to parse object file: The file was not recognized as a valid object file

Now:
out.obj: The file was not recognized as a valid object file

(tested with touch foo.obj && bin/lld-link foo.obj)

ruiu accepted this revision.Aug 3 2016, 11:11 AM
ruiu edited edge metadata.

LGTM. Thanks!

This revision is now accepted and ready to land.Aug 3 2016, 11:11 AM
thakis closed this revision.Aug 3 2016, 11:15 AM

r277616, thanks!