This is an archive of the discontinued LLVM Phabricator instance.

Consistently bail out if we fail to parse command line args
Needs ReviewPublic

Authored by sbc100 on Jun 27 2018, 5:17 PM.

Details

Event Timeline

sbc100 created this revision.Jun 27 2018, 5:17 PM
sbc100 added a reviewer: ruiu.Jun 27 2018, 5:19 PM
ruiu added a comment.Jun 27 2018, 10:34 PM

I think the point of the existing code is to find as many command line argument errors as possible in one execution of the linker. I wonder what you are trying to fix with this patch.

I just noticed that the two linkers were inconsistent.

With wasm I was seening "unknown arg XXX" and then also always the "no input file". The ELF linker seems to sneekly get around this by only shown "no input files" in no other errors have been seen. But I don't think we should even be calling createFiles in the case that there is an incorrect command line flag.