Add the core architecture for the lld driver.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Sat, 8 Dec 2012 00:47:36 +0000 (00:47 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Sat, 8 Dec 2012 00:47:36 +0000 (00:47 +0000)
commit9ff4be240a3cfc19ac0b4215967626a9ea2b04d0
tree5bbe2de0dd41e39d8d56e317b14a5704a370bfe7
parent7141554858d2d857aab0ac15474a5a631efe526c
Add the core architecture for the lld driver.

This includes selecting which driver to emulate, option parsing, invocation
building, and running the link. This currently only supports a very basic
subset of ld for x86_64-linux.

lld -flavor ld obj.o -o obj

or symlink lld as (ld , link, ld64, core) to get the desired behavior without
-flavor.

llvm-svn: 169659
16 files changed:
lld/include/lld/Core/ErrorOr.h [new file with mode: 0644]
lld/include/lld/Driver/Driver.h [new file with mode: 0644]
lld/include/lld/Driver/LinkerInvocation.h [new file with mode: 0644]
lld/include/lld/Driver/LinkerOptions.h [new file with mode: 0644]
lld/include/lld/Driver/Target.h [new file with mode: 0644]
lld/lib/CMakeLists.txt
lld/lib/Driver/CMakeLists.txt [new file with mode: 0644]
lld/lib/Driver/CoreOptions.td [new file with mode: 0644]
lld/lib/Driver/Driver.cpp [new file with mode: 0644]
lld/lib/Driver/Drivers.cpp [new file with mode: 0644]
lld/lib/Driver/LDOptions.td [new file with mode: 0644]
lld/lib/Driver/LinkerInvocation.cpp [new file with mode: 0644]
lld/lib/Driver/Target.cpp [new file with mode: 0644]
lld/lib/Driver/Targets.cpp [new file with mode: 0644]
lld/tools/lld/CMakeLists.txt
lld/tools/lld/lld.cpp