[cfe-commits] r151109 - in /cfe/trunk: include/clang/Driver/Options.td lib/Driver/Driver.cpp

Chris Lattner clattner at apple.com
Tue Feb 21 20:08:43 PST 2012


On Feb 21, 2012, at 4:30 PM, Chad Rosier wrote:

> Author: mcrosier
> Date: Tue Feb 21 18:30:39 2012
> New Revision: 151109
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=151109&view=rev
> Log:
> Provide a way to disable auto-generation of preprocessed files during clang 
> crash.  This can speedup the process of generating a delta reduced test case.
> rdar://10905465

Hi Chad,

Please document this in the Clang user's manual.

-Chris

> 
> Modified:
>    cfe/trunk/include/clang/Driver/Options.td
>    cfe/trunk/lib/Driver/Driver.cpp
> 
> Modified: cfe/trunk/include/clang/Driver/Options.td
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.td?rev=151109&r1=151108&r2=151109&view=diff
> ==============================================================================
> --- cfe/trunk/include/clang/Driver/Options.td (original)
> +++ cfe/trunk/include/clang/Driver/Options.td Tue Feb 21 18:30:39 2012
> @@ -292,6 +292,7 @@
> def fconstexpr_depth_EQ : Joined<"-fconstexpr-depth=">, Group<f_Group>;
> def fconstexpr_backtrace_limit_EQ : Joined<"-fconstexpr-backtrace-limit=">,
>                                     Group<f_Group>;
> +def fno_crash_diagnostics : Flag<"-fno-crash-diagnostics">, Group<f_clang_Group>, Flags<[NoArgumentUnused]>;
> def fcreate_profile : Flag<"-fcreate-profile">, Group<f_Group>;
> def fcxx_exceptions: Flag<"-fcxx-exceptions">, Group<f_Group>;
> def fcxx_modules : Flag <"-fcxx-modules">, Group<f_Group>, Flags<[NoForward]>;
> 
> Modified: cfe/trunk/lib/Driver/Driver.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=151109&r1=151108&r2=151109&view=diff
> ==============================================================================
> --- cfe/trunk/lib/Driver/Driver.cpp (original)
> +++ cfe/trunk/lib/Driver/Driver.cpp Tue Feb 21 18:30:39 2012
> @@ -363,6 +363,9 @@
> // diagnostic information to a bug report.
> void Driver::generateCompilationDiagnostics(Compilation &C,
>                                             const Command *FailingCommand) {
> +  if (C.getArgs().hasArg(options::OPT_fno_crash_diagnostics))
> +    return;
> +
>   Diag(clang::diag::note_drv_command_failed_diag_msg)
>     << "Please submit a bug report to " BUG_REPORT_URL " and include command"
>     " line arguments and all diagnostic information.";
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list