This is an archive of the discontinued LLVM Phabricator instance.

Handle bitcode files in archive files with --whole-archive.
ClosedPublic

Authored by ruiu on Feb 22 2016, 3:38 PM.

Details

Reviewers
rafael
Summary

This patch moves BitcodeFile instantiation into createObjectFile.
Previously, we handle bitcode files outside that function and did
not handle for --whole-archive.

Diff Detail

Event Timeline

ruiu updated this revision to Diff 48744.Feb 22 2016, 3:38 PM
ruiu retitled this revision from to Handle bitcode files in archive files with --whole-archive..
ruiu updated this object.
ruiu added a reviewer: rafael.
ruiu added a subscriber: llvm-commits.
rafael added inline comments.Feb 23 2016, 5:37 AM
ELF/InputFiles.cpp
459

I would prefer to keep this as std::unique_ptr and use std::move on the caller.

ruiu updated this revision to Diff 48823.Feb 23 2016, 9:11 AM
  • address Rafael's comment
rafael accepted this revision.Feb 23 2016, 10:15 AM
rafael edited edge metadata.

LGTM with nits.

ELF/InputFiles.cpp
460

Why remove the llvm::make_unique?

464

unrelated white space change.

This revision is now accepted and ready to land.Feb 23 2016, 10:15 AM
ruiu closed this revision.Feb 23 2016, 10:21 AM