This is an archive of the discontinued LLVM Phabricator instance.

lld-link: If an input file doesn't exist, don't print diagnostics after "input file doesn't exist".
ClosedPublic

Authored by thakis on Sep 12 2018, 6:51 AM.

Details

Summary

For lld-link missing.obj, lld-link currently prints:

lld-link: error: could not open foo.obj: No such file or directory
lld-link: warning: /machine is not specified. x64 is assumed
lld-link: error: subsystem must be defined

The 2nd and 3rd diagnostics are consequences of the input not existing and are not interesting. If input files are missing, the best thing we can do is point that out and then return.

Diff Detail

Repository
rLLD LLVM Linker

Event Timeline

thakis created this revision.Sep 12 2018, 6:51 AM
thakis edited the summary of this revision. (Show Details)
thakis added a reviewer: ruiu.
thakis added a subscriber: llvm-commits.

(Forcing an email to be sent since I accidentally clicked "save" before adding llvm-commits)

ruiu accepted this revision.Sep 13 2018, 6:48 AM

LGTM

This revision is now accepted and ready to land.Sep 13 2018, 6:48 AM
This revision was automatically updated to reflect the committed changes.