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.

llvm-svn: 211122
This commit is contained in:
Diego Novillo 2014-06-17 20:01:51 +00:00
parent f68823ba3f
commit 18362bfd27
1 changed files with 0 additions and 11 deletions

View File

@ -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<llvm::Regex>(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);