diff options
author | Johannes Doerfert <johannes@jdoerfert.de> | 2023-11-01 11:33:25 -0700 |
---|---|---|
committer | Johannes Doerfert <johannes@jdoerfert.de> | 2023-11-01 11:33:25 -0700 |
commit | 0e06ddf0f6896cfd817a1b97a43b78331e0b1d66 (patch) | |
tree | f9e64fba61f284af2968d178f9bf00019db7efd8 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 1c6c01fbde87171457a5bce7b147fa5bcbaddae7 (diff) | |
download | llvm-0e06ddf0f6896cfd817a1b97a43b78331e0b1d66.zip llvm-0e06ddf0f6896cfd817a1b97a43b78331e0b1d66.tar.gz llvm-0e06ddf0f6896cfd817a1b97a43b78331e0b1d66.tar.bz2 |
Revert "[APINotes] Upstream APINotesOptions"
This reverts commit c0a1857928c557400af0ed53d198cc9f3f185f9a.
A shared_ptr assertion always triggers causes all bots to fail.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 140feb0..fd6c250 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -3261,17 +3261,6 @@ static bool ParseHeaderSearchArgs(HeaderSearchOptions &Opts, ArgList &Args, return Diags.getNumErrors() == NumErrorsBefore; } -static void ParseAPINotesArgs(APINotesOptions &Opts, ArgList &Args, - DiagnosticsEngine &diags) { - if (const Arg *A = Args.getLastArg(OPT_fapinotes_swift_version)) { - if (Opts.SwiftVersion.tryParse(A->getValue())) - diags.Report(diag::err_drv_invalid_value) - << A->getAsString(Args) << A->getValue(); - } - for (const Arg *A : Args.filtered(OPT_iapinotes_modules)) - Opts.ModuleSearchPaths.push_back(A->getValue()); -} - /// Check if input file kind and language standard are compatible. static bool IsInputCompatibleWithStandard(InputKind IK, const LangStandard &S) { @@ -4549,7 +4538,6 @@ bool CompilerInvocation::CreateFromArgsImpl( llvm::Triple T(Res.getTargetOpts().Triple); ParseHeaderSearchArgs(Res.getHeaderSearchOpts(), Args, Diags, Res.getFileSystemOpts().WorkingDir); - ParseAPINotesArgs(Res.getAPINotesOpts(), Args, Diags); ParseLangArgs(LangOpts, Args, DashX, T, Res.getPreprocessorOpts().Includes, Diags); |