From 59fdf1727f5fd52f76c7aff09597c9bcfe359d78 Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Tue, 17 Jun 2014 20:01:51 +0000 Subject: Remove dead code. The parsing for -Rpass= had been factored into the function GenerateOptimizationRemarkRegex, but at the time I forgot to remove the original code that just handled OPT_Rpass_EQ. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211122 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Frontend/CompilerInvocation.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/Frontend/CompilerInvocation.cpp') diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index d0cf8a3301..6d5faf935e 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -550,17 +550,6 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, Opts.DependentLibraries = Args.getAllArgValues(OPT_dependent_lib); - if (Arg *A = Args.getLastArg(OPT_Rpass_EQ)) { - StringRef Val = A->getValue(); - std::string RegexError; - Opts.OptimizationRemarkPattern = std::make_shared(Val); - if (!Opts.OptimizationRemarkPattern->isValid(RegexError)) { - Diags.Report(diag::err_drv_optimization_remark_pattern) - << RegexError << A->getAsString(Args); - Opts.OptimizationRemarkPattern.reset(); - } - } - if (Arg *A = Args.getLastArg(OPT_Rpass_EQ)) Opts.OptimizationRemarkPattern = GenerateOptimizationRemarkRegex(Diags, Args, A); -- cgit v1.2.3