Move functionality of UniversalDriver to the entry point file.
authorRui Ueyama <ruiu@google.com>
Sun, 28 Feb 2016 19:50:14 +0000 (19:50 +0000)
committerRui Ueyama <ruiu@google.com>
Sun, 28 Feb 2016 19:50:14 +0000 (19:50 +0000)
commite7b330052fa1557ff5604ecec8d09dfb04a5827b
treeeace1ddf1f4005a6e8fb8d28bb286f5fd3b400ff
parent4d75e8d6761cb950b410d99fc09319bad51b14cb
Move functionality of UniversalDriver to the entry point file.

UniversalDriver was used as a dispatcher to each platform-specific driver.
It had its own Options.td file. It was not just too much to parse only a
few options (we only want to parse -core, -flavor or argv[0]),
but also interpreted arguments too early. For example, if you invoke lld as
"lld -flavor gnu ... -help", then you'd get the UniversalDriver's help
message instead of GnuDriver's. This patch eliminates the use of Options
from the dispatcher.

http://reviews.llvm.org/D17686

llvm-svn: 262190
lld/ELF/CMakeLists.txt
lld/include/lld/Driver/Driver.h
lld/lib/Driver/CMakeLists.txt
lld/lib/Driver/UniversalDriver.cpp [deleted file]
lld/lib/Driver/UniversalDriverOptions.td [deleted file]
lld/tools/lld/lld.cpp
lld/unittests/DriverTests/CMakeLists.txt
lld/unittests/DriverTests/DarwinLdDriverTest.cpp
lld/unittests/DriverTests/UniversalDriverTest.cpp [deleted file]