This is an archive of the discontinued LLVM Phabricator instance.

[ELF] Print archive name when it fails to parse
ClosedPublic

Authored by evgeny777 on Nov 18 2016, 6:36 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

evgeny777 updated this revision to Diff 78515.Nov 18 2016, 6:36 AM
evgeny777 retitled this revision from to [ELF] Print archive name when it fails to parse.
evgeny777 updated this object.
evgeny777 added a reviewer: ruiu.
evgeny777 set the repository for this revision to rL LLVM.
evgeny777 added a project: lld.
evgeny777 added a reviewer: rafael.
evgeny777 added a subscriber: rafael.
evgeny777 edited subscribers, added: grimar, ikudrin, llvm-commits; removed: rafael.
grimar added inline comments.Nov 18 2016, 6:43 AM
ELF/Driver.cpp
119 ↗(On Diff #78515)

This looks was not covered by testcase, just like 2 messages above btw,
also it has uppercase message while we usually do use lowercase always I believe.

evgeny777 added inline comments.Nov 18 2016, 8:09 AM
ELF/Driver.cpp
119 ↗(On Diff #78515)

Yep, but it wasn't covered originally as well and you have to use binary file to cover this.

grimar added inline comments.Nov 18 2016, 8:25 AM
ELF/Driver.cpp
119 ↗(On Diff #78515)

I see now. I think anyways we want to cover that. (I am ok to take this task). Anyways I think we are in position where *all* errors should ideally be covered with testcases. LLD is pretty solid now and we might want to think about user frienly messages and so on.
Any objections ?

evgeny777 added inline comments.Nov 18 2016, 8:27 AM
ELF/Driver.cpp
119 ↗(On Diff #78515)

Any objections ?

I don't have any.

ruiu accepted this revision.Nov 18 2016, 9:32 AM
ruiu edited edge metadata.

LGTM

test/ELF/bad-archive.s
6–7 ↗(On Diff #78515)

You can combine these two echos.

This revision is now accepted and ready to land.Nov 18 2016, 9:32 AM
This revision was automatically updated to reflect the committed changes.