[cfe-commits] [patch] sink arg parsing from libDriver to libBasic

nobled nobled at dreamwidth.org
Tue Feb 28 14:41:59 PST 2012


This lets clients use these utility classes without pulling in
the entire mostly-unrelated Driver library.
---
 include/clang/Basic/Arg.h                        |  120 ++++++
 include/clang/Basic/ArgList.h                    |  416 +++++++++++++++++++++
 include/clang/Basic/ArgUtil.h                    |   20 +
 include/clang/Basic/DiagnosticCommonKinds.td     |    7 +
 include/clang/Basic/DiagnosticDriverKinds.td     |    5 -
 include/clang/Basic/OptSpecifier.h               |   37 ++
 include/clang/Basic/OptTable.h                   |  182 ++++++++++
 include/clang/Basic/Option.h                     |  316 ++++++++++++++++
 include/clang/Driver/Action.h                    |    3 +-
 include/clang/Driver/Arg.h                       |  122 -------
 include/clang/Driver/ArgList.h                   |  418 ----------------------
 include/clang/Driver/CC1AsOptions.h              |    2 +-
 include/clang/Driver/CC1Options.h                |    2 +-
 include/clang/Driver/Compilation.h               |    5 +-
 include/clang/Driver/Driver.h                    |   11 +-
 include/clang/Driver/OptSpecifier.h              |   39 --
 include/clang/Driver/OptTable.h                  |  186 ----------
 include/clang/Driver/Option.h                    |  318 ----------------
 include/clang/Driver/Options.h                   |    3 +-
 include/clang/Driver/Tool.h                      |    3 +-
 include/clang/Driver/ToolChain.h                 |    7 +-
 include/clang/Driver/Util.h                      |    6 +-
 lib/Basic/Arg.cpp                                |  121 +++++++
 lib/Basic/ArgList.cpp                            |  331 +++++++++++++++++
 lib/Basic/CMakeLists.txt                         |    4 +
 lib/Basic/OptTable.cpp                           |  381 ++++++++++++++++++++
 lib/Basic/Option.cpp                             |  280 +++++++++++++++
 lib/Driver/Arg.cpp                               |  121 -------
 lib/Driver/ArgList.cpp                           |  331 -----------------
 lib/Driver/CC1AsOptions.cpp                      |    5 +-
 lib/Driver/CC1Options.cpp                        |    5 +-
 lib/Driver/CMakeLists.txt                        |    4 -
 lib/Driver/Compilation.cpp                       |    2 +-
 lib/Driver/Driver.cpp                            |    8 +-
 lib/Driver/DriverOptions.cpp                     |    5 +-
 lib/Driver/OptTable.cpp                          |  384 --------------------
 lib/Driver/Option.cpp                            |  280 ---------------
 lib/Driver/ToolChain.cpp                         |    6 +-
 lib/Driver/ToolChains.cpp                        |    9 +-
 lib/Driver/Tools.cpp                             |    7 +-
 lib/Driver/WindowsToolChain.cpp                  |    6 +-
 lib/Frontend/ASTUnit.cpp                         |    4 +-
 lib/Frontend/CompilerInvocation.cpp              |    8 +-
 lib/Frontend/CreateInvocationFromCommandLine.cpp |    4 +-
 lib/FrontendTool/ExecuteCompilerInvocation.cpp   |    4 +-
 tools/driver/cc1_main.cpp                        |    6 +-
 tools/driver/cc1as_main.cpp                      |    8 +-
 tools/driver/driver.cpp                          |    2 +-
 48 files changed, 2284 insertions(+), 2270 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-sink-arg-parsing-from-libDriver-to-libBasic.patch
Type: text/x-patch
Size: 170745 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120228/17f2a4fa/attachment.bin>


More information about the cfe-commits mailing list