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:
parent
f68823ba3f
commit
18362bfd27
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue