[PATCH] D17686: Move functionality of UniversalDriver to the entry point file.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 27 18:03:52 PST 2016


ruiu created this revision.
ruiu added a reviewer: rafael.
ruiu added a subscriber: llvm-commits.

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

Files:
  include/lld/Driver/Driver.h
  lib/Driver/CMakeLists.txt
  lib/Driver/UniversalDriver.cpp
  lib/Driver/UniversalDriverOptions.td
  tools/lld/lld.cpp
  unittests/DriverTests/CMakeLists.txt
  unittests/DriverTests/DarwinLdDriverTest.cpp
  unittests/DriverTests/UniversalDriverTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17686.49303.patch
Type: text/x-patch
Size: 15912 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160228/804607df/attachment-0001.bin>


More information about the llvm-commits mailing list