summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-06-20 22:16:00 +0000
committerJustin Bogner <mail@justinbogner.com>2014-06-20 22:16:00 +0000
commit332a5e526e6d22bc9e628adb91cc7b2ece188001 (patch)
tree39c4e2587fed4ff041b4065bddfed700ff69c0d5 /clang/test
parent0dc1e80a324b061c0143ce049032a1afd4dd1c7d (diff)
downloadbcm5719-llvm-332a5e526e6d22bc9e628adb91cc7b2ece188001.tar.gz
bcm5719-llvm-332a5e526e6d22bc9e628adb91cc7b2ece188001.zip
Driver: Record that we're in crashdump and push flags to ConstructJob
It's more flexible and arguably better layering to set flags to modify compiling for diagnostics in the CC1 job themselves, rather than tweaking the driver flags and letting them propagate. There is one visible change this causes: crash report files will now get preprocessed names (.i and friends). llvm-svn: 211411
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Driver/crash-report.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Driver/crash-report.c b/clang/test/Driver/crash-report.c
index 59ce8f76a3e..c9e78666628 100644
--- a/clang/test/Driver/crash-report.c
+++ b/clang/test/Driver/crash-report.c
@@ -7,11 +7,11 @@
// RUN: -Xclang -internal-isystem -Xclang /tmp/ \
// RUN: -Xclang -internal-externc-isystem -Xclang /tmp/ \
// RUN: -DFOO=BAR 2>&1 | FileCheck %s
-// RUN: cat %t/crash-report-*.c | FileCheck --check-prefix=CHECKSRC %s
+// RUN: cat %t/crash-report-*.i | FileCheck --check-prefix=CHECKSRC %s
// RUN: cat %t/crash-report-*.sh | FileCheck --check-prefix=CHECKSH %s
// REQUIRES: crash-recovery
-// because of the glob (*.c, *.sh)
+// because of the glob (*.i, *.sh)
// REQUIRES: shell
// RUN: not env FORCE_CLANG_DIAGNOSTICS_CRASH=1 %clang -fsyntax-only -x c /dev/null -lstdc++ 2>&1 | FileCheck %s
@@ -21,7 +21,7 @@
#pragma clang __debug parser_crash
// CHECK: Preprocessed source(s) and associated run script(s) are located at:
-// CHECK-NEXT: note: diagnostic msg: {{.*}}.c
+// CHECK-NEXT: note: diagnostic msg: {{.*}}.i
FOO
// CHECKSRC: FOO
// CHECKSH: -cc1
OpenPOWER on IntegriCloud