aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorDaniel Grumberg <dgrumberg@apple.com>2024-04-02 15:34:52 +0100
committerDaniel Grumberg <dgrumberg@apple.com>2024-04-02 15:34:52 +0100
commit209a1e8dfdf1c104dd53b50eb196d6bc0dd01659 (patch)
tree5d168c7a4dd26d1d21b1dd7819ee387d7d97001e /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parentea9a66ea8b6fee77e7ee9e47d868d43ecbbcd787 (diff)
downloadllvm-209a1e8dfdf1c104dd53b50eb196d6bc0dd01659.zip
llvm-209a1e8dfdf1c104dd53b50eb196d6bc0dd01659.tar.gz
llvm-209a1e8dfdf1c104dd53b50eb196d6bc0dd01659.tar.bz2
Revert "[clang][ExtractAPI] Add ability to create multiple symbol graphs (#86676)"
This failed the test suite due to missing DiagGroup for a new warning. This reverts commit b31414bf4f9898f7817a9fcf8a91f62ec26f3eaf.
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
-rw-r--r--clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
index f85f036..2446aee 100644
--- a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
+++ b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
@@ -181,13 +181,9 @@ CreateFrontendAction(CompilerInstance &CI) {
#endif
// Wrap the base FE action in an extract api action to generate
- // symbol graph as a biproduct of compilation (enabled with
- // --emit-symbol-graph option)
- if (FEOpts.EmitSymbolGraph) {
- if (FEOpts.SymbolGraphOutputDir.empty()) {
- CI.getDiagnostics().Report(diag::warn_missing_symbol_graph_dir);
- CI.getFrontendOpts().SymbolGraphOutputDir = ".";
- }
+ // symbol graph as a biproduct of compilation ( enabled with
+ // --emit-symbol-graph option )
+ if (!FEOpts.SymbolGraphOutputDir.empty()) {
CI.getCodeGenOpts().ClearASTBeforeBackend = false;
Act = std::make_unique<WrappingExtractAPIAction>(std::move(Act));
}