diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2021-02-22 09:24:12 +0100 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2021-02-22 09:53:25 +0100 |
commit | bf15697e9b66b8f7e6f3f7c510a259651810bd29 (patch) | |
tree | 5d3402106794990f3748fbf3e8365baf0c86651f /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 5b20d80a03ba8848bb0504dd70dc46aa47037fd2 (diff) | |
download | llvm-bf15697e9b66b8f7e6f3f7c510a259651810bd29.zip llvm-bf15697e9b66b8f7e6f3f7c510a259651810bd29.tar.gz llvm-bf15697e9b66b8f7e6f3f7c510a259651810bd29.tar.bz2 |
[clang][cli] Stop creating '-Wno-stdlibcxx-not-found' in cc1
This patch stops creating the '-Wno-stdlibcxx-not-found' argument in `CompilerInvocation::CreateFromArgs`.
The code was added in 2e7ab55e657f (a follow-up to D48297). However, D61963 removes relevant tests and starts explicitly passing '-Wno-stdlibcxx-not-found' to the driver. I think it's fair to assume this is a dead code.
Reviewed By: dexonsmith
Differential Revision: https://reviews.llvm.org/D97042
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index a49c978..45fb4f6 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -4588,12 +4588,6 @@ bool CompilerInvocation::CreateFromArgs(CompilerInvocation &Res, Res.getPreprocessorOpts().Includes, Diags); if (Res.getFrontendOpts().ProgramAction == frontend::RewriteObjC) LangOpts.ObjCExceptions = 1; - if (T.isOSDarwin() && DashX.isPreprocessed()) { - // Supress the darwin-specific 'stdlibcxx-not-found' diagnostic for - // preprocessed input as we don't expect it to be used with -std=libc++ - // anyway. - Res.getDiagnosticOpts().Warnings.push_back("no-stdlibcxx-not-found"); - } } if (LangOpts.CUDA) { |