This is an archive of the discontinued LLVM Phabricator instance.

Improve error check for an empty archive.
ClosedPublic

Authored by ruiu on Sep 30 2016, 10:26 AM.

Details

Summary

Previously, it warned on any archive file that has no symbol.
With this patch, it warns on such archive file that contains only
LLVM bitcode files.

Diff Detail

Repository
rL LLVM

Event Timeline

ruiu updated this revision to Diff 73091.Sep 30 2016, 10:26 AM
ruiu retitled this revision from to Improve error check for an empty archive..
ruiu updated this object.
ruiu added a reviewer: rafael.
ruiu added a subscriber: llvm-commits.
ruiu updated this revision to Diff 73094.Sep 30 2016, 10:49 AM
  • Updated as per Rafael's comment. This patch needs another patch to LLVM to define Archive::isEmpty which is just this.

    bool Archive::isEmpty() const { return Data.getBufferSize() == 8; }
rafael accepted this revision.Sep 30 2016, 10:55 AM
rafael edited edge metadata.

LGTM

This revision is now accepted and ready to land.Sep 30 2016, 10:55 AM
This revision was automatically updated to reflect the committed changes.