aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2018-08-17 13:37:57 +0000
committerHans Wennborg <hans@hanshq.net>2018-08-17 13:37:57 +0000
commitfe170f961ef352eee1aeec5decee8111a7fc9f4e (patch)
treecb58f9177155b29657713ea963629336eea0ff69
parent61a414c49a74cde09db8428e3a37dc41cf0d024e (diff)
clang-cl: Expose -fno-crash-diagnostics (PR38574)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340023 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Driver/Options.td2
-rw-r--r--test/Driver/cl-options.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td
index 40d3d21a90..42db773e9f 100644
--- a/include/clang/Driver/Options.td
+++ b/include/clang/Driver/Options.td
@@ -800,7 +800,7 @@ def fconstexpr_depth_EQ : Joined<["-"], "fconstexpr-depth=">, Group<f_Group>;
def fconstexpr_steps_EQ : Joined<["-"], "fconstexpr-steps=">, 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 fno_crash_diagnostics : Flag<["-"], "fno-crash-diagnostics">, Group<f_clang_Group>, Flags<[NoArgumentUnused, CoreOption]>,
HelpText<"Disable auto-generation of preprocessed source files and a script for reproduction during a clang crash">;
def fcrash_diagnostics_dir : Joined<["-"], "fcrash-diagnostics-dir=">, Group<f_clang_Group>, Flags<[NoArgumentUnused, CoreOption]>;
def fcreate_profile : Flag<["-"], "fcreate-profile">, Group<f_Group>;
diff --git a/test/Driver/cl-options.c b/test/Driver/cl-options.c
index d9a3e64630..c251380f98 100644
--- a/test/Driver/cl-options.c
+++ b/test/Driver/cl-options.c
@@ -578,6 +578,7 @@
// RUN: --driver-mode=cl \
// RUN: -fblocks \
// RUN: -fcrash-diagnostics-dir=/foo \
+// RUN: -fno-crash-diagnostics \
// RUN: -fno-blocks \
// RUN: -fbuiltin \
// RUN: -fno-builtin \