r211122 - Remove dead code.
Diego Novillo
dnovillo at google.com
Tue Jun 17 13:01:52 PDT 2014
Author: dnovillo
Date: Tue Jun 17 15:01:51 2014
New Revision: 211122
URL: http://llvm.org/viewvc/llvm-project?rev=211122&view=rev
Log:
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.
Modified:
cfe/trunk/lib/Frontend/CompilerInvocation.cpp
Modified: cfe/trunk/lib/Frontend/CompilerInvocation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInvocation.cpp?rev=211122&r1=211121&r2=211122&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CompilerInvocation.cpp (original)
+++ cfe/trunk/lib/Frontend/CompilerInvocation.cpp Tue Jun 17 15:01:51 2014
@@ -550,17 +550,6 @@ static bool ParseCodeGenArgs(CodeGenOpti
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);
More information about the cfe-commits
mailing list