diff options
| author | Diego Novillo <dnovillo@google.com> | 2014-06-17 20:01:51 +0000 |
|---|---|---|
| committer | Diego Novillo <dnovillo@google.com> | 2014-06-17 20:01:51 +0000 |
| commit | 59fdf1727f5fd52f76c7aff09597c9bcfe359d78 (patch) | |
| tree | 16b2fbb661785678209a0a84be069824e1db486a /lib/Frontend/CompilerInvocation.cpp | |
| parent | e15a4d01d20b94111073eac67155979620ff98f8 (diff) | |
| download | clang-59fdf1727f5fd52f76c7aff09597c9bcfe359d78.tar.gz clang-59fdf1727f5fd52f76c7aff09597c9bcfe359d78.tar.bz2 clang-59fdf1727f5fd52f76c7aff09597c9bcfe359d78.tar.xz | |
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
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
| -rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
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<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); |
