This is an archive of the discontinued LLVM Phabricator instance.

Include an archive file name in an error message for a bad file.
ClosedPublic

Authored by ruiu on Mar 11 2019, 8:43 AM.

Diff Detail

Repository
rLLD LLVM Linker

Event Timeline

ruiu created this revision.Mar 11 2019, 8:43 AM
Herald added a project: Restricted Project. · View Herald Transcript
efriedma accepted this revision.Mar 11 2019, 11:41 AM

LGTM

lld/ELF/InputFiles.cpp
1204 ↗(On Diff #190097)

Not directly a comment on this change... but maybe we should also change the text of these error messages to indicate a general cause in addition to the specific cause, something like "corrupt ELF file (invalid data encoding)".

This revision is now accepted and ready to land.Mar 11 2019, 11:41 AM
ruiu updated this revision to Diff 190144.Mar 11 2019, 1:07 PM
ruiu marked an inline comment as done.
  • address review comment
lld/ELF/InputFiles.cpp
1204 ↗(On Diff #190097)

Makes sense. Updated the error messages.

This revision was automatically updated to reflect the committed changes.