This is an archive of the discontinued LLVM Phabricator instance.

ELF: Merge UndefinedBitcode and UndefinedElf.
ClosedPublic

Authored by pcc on Apr 26 2016, 3:44 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc updated this revision to Diff 55114.Apr 26 2016, 3:44 PM
pcc retitled this revision from to ELF: Merge UndefinedBitcode and UndefinedElf..
pcc updated this object.
pcc added reviewers: rafael, ruiu.
pcc added a subscriber: llvm-commits.
ruiu edited edge metadata.Apr 26 2016, 4:18 PM

It's generally looking good.

ELF/InputFiles.cpp
320 ↗(On Diff #55114)

This may be a silly question, but I don't remember why we need to save st_size for undefined symbols. Are we using that information?

pcc added inline comments.Apr 26 2016, 4:47 PM
ELF/InputFiles.cpp
320 ↗(On Diff #55114)

The size shows up in the output symbol table, but I can't really think of a good reason why we need to keep it there. I'll change this patch to drop it unless @rafael can see a reason not to.

ruiu accepted this revision.Apr 26 2016, 4:56 PM
ruiu edited edge metadata.

LGTM. You can keep it for now and remove in a follow-up patch. Probably we shouldn't mix them together.

This revision is now accepted and ready to land.Apr 26 2016, 4:56 PM
This revision was automatically updated to reflect the committed changes.