aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorZixu Wang <zixu_wang@apple.com>2022-01-20 10:30:56 -0800
committerZixu Wang <zixu_wang@apple.com>2022-01-26 11:31:12 -0800
commitb1d946cbf780f1769b3a3a39ce68e462a181869e (patch)
tree8f23513f2040a969ec3a6e3210b507250411acd0 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parente08f3bfe587d8dc9f177ef67b1201837b3c90523 (diff)
downloadllvm-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/FrontendTool/ExecuteCompilerInvocation.cpp')
-rw-r--r--clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
index 8e18f33..8a8a137 100644
--- a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
+++ b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
@@ -57,6 +57,8 @@ CreateFrontendBaseAction(CompilerInstance &CI) {
case EmitLLVMOnly: return std::make_unique<EmitLLVMOnlyAction>();
case EmitCodeGenOnly: return std::make_unique<EmitCodeGenOnlyAction>();
case EmitObj: return std::make_unique<EmitObjAction>();
+ case ExtractAPI:
+ return std::make_unique<ExtractAPIAction>();
case FixIt: return std::make_unique<FixItAction>();
case GenerateModule:
return std::make_unique<GenerateModuleFromModuleMapAction>();