llvm-project/lld/lib/Core
Nick Kledzik a721db24c0 Subclass InputGraph to get darwin linker library semantics
The darwin linker operates differently than the gnu linker with respect to
libraries. The darwin linker first links in all object files from the command
line, then to resolve any remaining undefines, it repeatedly iterates over
libraries on the command line until either all undefines are resolved or no
undefines were resolved in the last pass.

When Shankar made the InputGraph model, the plan for darwin was for the darwin
driver to place all libraries in a group at the end of the InputGraph. Thus
making the darwin model a subset of the gnu model. But it turns out that does
not work because the driver cannot tell if a file is an object or library until
it has been loaded, which happens later.

This solution is to subclass InputGraph for darwin and just iterate the graph
the way darwin linker needs.

llvm-svn: 220330
2014-10-21 21:14:11 +00:00
..
CMakeLists.txt Fix build breakage. 2014-06-03 07:53:37 +00:00
DefinedAtom.cpp Sort include files according to convention. 2014-10-18 05:33:55 +00:00
Error.cpp Sort include files according to convention. 2014-10-18 05:33:55 +00:00
File.cpp Partially roll back r217324. 2014-09-08 18:01:42 +00:00
InputGraph.cpp Subclass InputGraph to get darwin linker library semantics 2014-10-21 21:14:11 +00:00
LinkingContext.cpp Add MachOLinkingContext parameter to MachOFileNode constructor. 2014-10-01 20:24:30 +00:00
Makefile Initial set of Makefiles 2014-06-04 09:54:07 +00:00
Resolver.cpp Sort include files according to convention. 2014-10-18 05:33:55 +00:00
SymbolTable.cpp Sort include files according to convention. 2014-10-18 05:33:55 +00:00
TODO.txt remove completed items 2012-05-04 01:14:02 +00:00