This is an archive of the discontinued LLVM Phabricator instance.

[lld] Break cyclic dependency between lldDriver and lldMachO
ClosedPublic

Authored by garious on Jan 23 2015, 3:08 PM.

Details

Reviewers
ruiu
nicholas
Summary

Moved getMemoryBuffer from DarwinLdDriver to MachOLinkingContext.

Diff Detail

Repository
rL LLVM

Event Timeline

garious updated this revision to Diff 18694.Jan 23 2015, 3:08 PM
garious retitled this revision from to [lld] Break cyclic dependency between lldDriver and lldMachO.
garious updated this object.
garious edited the test plan for this revision. (Show Details)
garious added reviewers: ruiu, nicholas.
garious set the repository for this revision to rL LLVM.
garious added a project: lld.
garious added a subscriber: Unknown Object (MLST).
ruiu accepted this revision.Jan 23 2015, 3:15 PM
ruiu edited edge metadata.

LGTM. By the way when you upload a patch to Phabricator, please run diff with -u 100000 or something, so that entire file is included in a diff. That would help reviewers review code. Thanks!

include/lld/ReaderWriter/MachOLinkingContext.h
256

Please move this after private:.

This revision is now accepted and ready to land.Jan 23 2015, 3:15 PM
garious added inline comments.Jan 23 2015, 3:21 PM
include/lld/ReaderWriter/MachOLinkingContext.h
256

No can do. Do you mean any method that it calls?

ruiu added inline comments.Jan 23 2015, 3:23 PM
include/lld/ReaderWriter/MachOLinkingContext.h
256

Ah right, we can't.

garious closed this revision.Jan 23 2015, 5:12 PM