diff options
author | Zixu Wang <zixu_wang@apple.com> | 2022-01-20 10:30:56 -0800 |
---|---|---|
committer | Zixu Wang <zixu_wang@apple.com> | 2022-01-26 11:31:12 -0800 |
commit | b1d946cbf780f1769b3a3a39ce68e462a181869e (patch) | |
tree | 8f23513f2040a969ec3a6e3210b507250411acd0 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | e08f3bfe587d8dc9f177ef67b1201837b3c90523 (diff) | |
download | llvm-b1d946cbf780f1769b3a3a39ce68e462a181869e.zip llvm-b1d946cbf780f1769b3a3a39ce68e462a181869e.tar.gz llvm-b1d946cbf780f1769b3a3a39ce68e462a181869e.tar.bz2 |
[clang] Add an extract-api driver option
This is the initial commit for the clang-extract-api RFC
<https://lists.llvm.org/pipermail/cfe-dev/2021-September/068768.html>
Add a new driver option `-extract-api` and associate it with a dummy
(for now) frontend action to set up the initial structure for
incremental works.
Differential Revision: https://reviews.llvm.org/D117809
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index eaca1fb..7f1ce3d 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -2408,6 +2408,7 @@ static const auto &getFrontendActionTable() { {frontend::EmitCodeGenOnly, OPT_emit_codegen_only}, {frontend::EmitCodeGenOnly, OPT_emit_codegen_only}, {frontend::EmitObj, OPT_emit_obj}, + {frontend::ExtractAPI, OPT_extract_api}, {frontend::FixIt, OPT_fixit_EQ}, {frontend::FixIt, OPT_fixit}, @@ -4147,6 +4148,7 @@ static bool isStrictlyPreprocessorAction(frontend::ActionKind Action) { case frontend::EmitLLVMOnly: case frontend::EmitCodeGenOnly: case frontend::EmitObj: + case frontend::ExtractAPI: case frontend::FixIt: case frontend::GenerateModule: case frontend::GenerateModuleInterface: |