aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-07-25 18:55:43 +0000
committerChad Rosier <mcrosier@apple.com>2012-07-25 18:55:43 +0000
commit699c6cd0b99f715b6638c8d49f1dfee22f30aabe (patch)
tree2ea6ced0c76ce4c77e3ce69a27d25eaaeec0ca89
parenta4ba28f3215b4ea70d0cf15026edbfb535e2f0d3 (diff)
[driver crash diagnostics] Strip -internal-isystem and -internal-externc-isystem.
rdar://11949066 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160752 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Driver/Driver.cpp2
-rw-r--r--test/Driver/crash-report.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index da7fe187fb..5be60b8806 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -524,6 +524,8 @@ void Driver::generateCompilationDiagnostics(Compilation &C,
Flag.push_back("-idirafter ");
Flag.push_back("-include ");
Flag.push_back("-include-pch ");
+ Flag.push_back("-internal-isystem ");
+ Flag.push_back("-internal-externc-isystem ");
Flag.push_back("-iprefix ");
Flag.push_back("-iwithprefix ");
Flag.push_back("-iwithprefixbefore ");
diff --git a/test/Driver/crash-report.c b/test/Driver/crash-report.c
index 7c7d3ab0ab..7adaf42a2c 100644
--- a/test/Driver/crash-report.c
+++ b/test/Driver/crash-report.c
@@ -3,6 +3,7 @@
// RUN: env TMPDIR=%t TEMP=%t TMP=%t %clang -fsyntax-only %s \
// RUN: -F/tmp/ -I /tmp/ -idirafter /tmp/ -iquote /tmp/ -isystem /tmp/ \
// RUN: -iprefix /the/prefix -iwithprefix /tmp -iwithprefixbefore /tmp/ \
+// RUN: -internal-isystem /tmp/ -internal-externc-isystem /tmp/ \
// RUN: -DFOO=BAR 2>&1 | FileCheck %s
// RUN: cat %t/crash-report-*.c | FileCheck --check-prefix=CHECKSRC %s
// RUN: cat %t/crash-report-*.sh | FileCheck --check-prefix=CHECKSH %s
@@ -22,3 +23,5 @@ FOO
// CHECKSH-NOT: -iprefix /the/prefix
// CHECKSH-NOT: -iwithprefix /tmp/
// CHECKSH-NOT: -iwithprefixbefore /tmp/
+// CHECKSH-NOT: -internal-isystem /tmp/
+// CHECKSH-NOT: -internal-externc-isystem /tmp/