This is an archive of the discontinued LLVM Phabricator instance.

[LTO] Switch Module to std::unique_ptr<>
ClosedPublic

Authored by davide on Apr 11 2016, 3:12 PM.

Details

Summary

In preparation for the parallel LTO codegen work (see splitCodeGen in gold-plugin). If it turns out we don't want parallel LTO for the ELF linker, I'll revert this one.

Diff Detail

Repository
rL LLVM

Event Timeline

davide updated this revision to Diff 53327.Apr 11 2016, 3:12 PM
davide retitled this revision from to [LTO] Switch Module to std::unique_ptr<>.
davide updated this object.
davide added a reviewer: ruiu.
davide added a subscriber: llvm-commits.
ruiu added inline comments.Apr 11 2016, 3:16 PM
ELF/LTO.h
43 ↗(On Diff #53327)

blah -> ld-temp.o

*Combined.get() can be *Combined?

Does Combined owns the newly created llvm::Module?

davide added inline comments.Apr 11 2016, 3:21 PM
ELF/LTO.h
43 ↗(On Diff #53327)

I think so.

davide updated this revision to Diff 53331.Apr 11 2016, 3:22 PM
ruiu accepted this revision.Apr 11 2016, 3:34 PM
ruiu edited edge metadata.

LGTM

ELF/LTO.h
43 ↗(On Diff #53331)

Need a space before {}. (Or run clang-format-diff.)

This revision is now accepted and ready to land.Apr 11 2016, 3:34 PM
ruiu added inline comments.Apr 11 2016, 3:39 PM
ELF/LTO.h
43 ↗(On Diff #53331)

Maybe it's because you have an extra ; at end of the line?

This revision was automatically updated to reflect the committed changes.