[PATCH] D79796: [DO NOT REVIEW] Sketch support for generating CC1 command line from CompilerInvocation

Daniel Grumberg via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 12 11:16:56 PDT 2020


dang created this revision.
Herald added subscribers: llvm-commits, cfe-commits, dexonsmith, mgorny.
Herald added projects: clang, LLVM.
dang added reviewers: Bigcheese, dexonsmith.
dang edited the summary of this revision.

This is an add-on to the RFC at http://lists.llvm.org/pipermail/cfe-dev/2020-May/065421.html <http://lists.llvm.org/pipermail/cfe-dev/2020-May/065421.html>

This only works for -fmodules-strict-context-hash at the moment.
This introduces optional additional information in Option records that can
specify a mapping between an option and a field of a class (used here for
CompilerInvocation).
Also it adds a GenerateCC1CommandLine method to Compiler invocation that uses
the TableGen definitions to generate command line argument strings.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79796

Files:
  clang/include/clang/Driver/CC1Options.td
  clang/include/clang/Frontend/CompilerInvocation.h
  clang/lib/Frontend/CompilerInvocation.cpp
  clang/unittests/Frontend/CMakeLists.txt
  clang/unittests/Frontend/CompilerInvocationTest.cpp
  llvm/include/llvm/Option/OptParser.td
  llvm/utils/TableGen/OptParserEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79796.263475.patch
Type: text/x-patch
Size: 11804 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200512/48a9818f/attachment-0001.bin>


More information about the cfe-commits mailing list