[Driver] Use libOption with tablegen.
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 27 Nov 2018 21:00:32 +0000 (21:00 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 27 Nov 2018 21:00:32 +0000 (21:00 +0000)
commit00eae5ea315dce8f34ece5e1e96d43d09fb1400e
treec7b4e453f2e547934ef3aaab26a0074536c04d0c
parent3aeeaff89f38b413bc31336b8f7d25fe545ce3eb
[Driver] Use libOption with tablegen.

This patch modifies the lldb driver to use libOption for option parsing.
It allows us to decouple option parsing from option processing which is
important when arguments affect initialization. This was previously not
possible because the debugger need to be initialized as some option
interpretation (like the scripting language etc) was handled by the
debugger, rather than in the driver.

Differential revision: https://reviews.llvm.org/D54692

llvm-svn: 347709
lldb/lit/Driver/Inputs/Print0.in [new file with mode: 0644]
lldb/lit/Driver/Inputs/Print2.in [new file with mode: 0644]
lldb/lit/Driver/Inputs/Print4.in [new file with mode: 0644]
lldb/lit/Driver/Inputs/Print6.in [new file with mode: 0644]
lldb/lit/Driver/TestCommands.test [new file with mode: 0644]
lldb/lit/Driver/TestNoUseColor.test [new file with mode: 0644]
lldb/lldb.xcodeproj/project.pbxproj
lldb/tools/driver/CMakeLists.txt
lldb/tools/driver/Driver.cpp
lldb/tools/driver/Driver.h
lldb/tools/driver/Options.td [new file with mode: 0644]