diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2020-11-18 10:10:17 +0100 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2020-11-18 12:18:27 +0100 |
commit | 1e6fc2fa532c280abec04f83410dfdb3760dfc0f (patch) | |
tree | c0434daced702809a40937683768bb2615810d56 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 97a2eac3a924f3081bf80ee69ce59bc89257b857 (diff) | |
download | llvm-1e6fc2fa532c280abec04f83410dfdb3760dfc0f.zip llvm-1e6fc2fa532c280abec04f83410dfdb3760dfc0f.tar.gz llvm-1e6fc2fa532c280abec04f83410dfdb3760dfc0f.tar.bz2 |
[clang][cli] Port Migrator option flags to new option parsing system
Depends on D83406
Reviewed By: Bigcheese
Original patch by Daniel Grumberg.
Differential Revision: https://reviews.llvm.org/D83690
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 2c54611..a0ed817 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -683,12 +683,6 @@ static void parseAnalyzerConfigs(AnalyzerOptions &AnOpts, << "a filename"; } -static bool ParseMigratorArgs(MigratorOptions &Opts, ArgList &Args) { - Opts.NoNSAllocReallocError = Args.hasArg(OPT_migrator_no_nsalloc_error); - Opts.NoFinalizeRemoval = Args.hasArg(OPT_migrator_no_finalize_removal); - return true; -} - static void ParseCommentArgs(CommentOptions &Opts, ArgList &Args) { Opts.BlockCommandNames = Args.getAllArgValues(OPT_fcomment_block_commands); Opts.ParseAllComments = Args.hasArg(OPT_fparse_all_comments); @@ -3838,7 +3832,6 @@ bool CompilerInvocation::CreateFromArgs(CompilerInvocation &Res, FixupInvocation(Res); Success &= ParseAnalyzerArgs(*Res.getAnalyzerOpts(), Args, Diags); - Success &= ParseMigratorArgs(Res.getMigratorOpts(), Args); ParseDependencyOutputArgs(Res.getDependencyOutputOpts(), Args); if (!Res.getDependencyOutputOpts().OutputFile.empty() && Res.getDependencyOutputOpts().Targets.empty()) { |