This is an archive of the discontinued LLVM Phabricator instance.

LibDriver: Reject inputs that are not COFF objects or bitcode files.
ClosedPublic

Authored by pcc on Dec 14 2016, 2:12 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc updated this revision to Diff 81469.Dec 14 2016, 2:12 PM
pcc retitled this revision from to LibDriver: Reject inputs that are not COFF objects or bitcode files..
pcc updated this object.
pcc added a reviewer: rnk.
pcc added a subscriber: llvm-commits.
davide accepted this revision.Dec 14 2016, 2:27 PM
davide added a reviewer: davide.
davide added a subscriber: davide.

LGTM, thanks for making this stricter.

This revision is now accepted and ready to land.Dec 14 2016, 2:27 PM
davide added inline comments.Dec 14 2016, 2:28 PM
llvm/lib/LibDriver/LibDriver.cpp
150–151 ↗(On Diff #81469)

I wish libDriver had a diagnostic handler instead of accessing llvm::errs() directly here. Well, this seems widespread so better leave it as is.

This revision was automatically updated to reflect the committed changes.