[cfe-commits] r160752 - in /cfe/trunk: lib/Driver/Driver.cpp test/Driver/crash-report.c

Chad Rosier mcrosier at apple.com
Wed Jul 25 11:55:43 PDT 2012


Author: mcrosier
Date: Wed Jul 25 13:55:43 2012
New Revision: 160752

URL: http://llvm.org/viewvc/llvm-project?rev=160752&view=rev
Log:
[driver crash diagnostics] Strip -internal-isystem and -internal-externc-isystem.
rdar://11949066

Modified:
    cfe/trunk/lib/Driver/Driver.cpp
    cfe/trunk/test/Driver/crash-report.c

Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=160752&r1=160751&r2=160752&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Wed Jul 25 13:55:43 2012
@@ -524,6 +524,8 @@
         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 ");

Modified: cfe/trunk/test/Driver/crash-report.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/crash-report.c?rev=160752&r1=160751&r2=160752&view=diff
==============================================================================
--- cfe/trunk/test/Driver/crash-report.c (original)
+++ cfe/trunk/test/Driver/crash-report.c Wed Jul 25 13:55:43 2012
@@ -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 @@
 // CHECKSH-NOT: -iprefix /the/prefix
 // CHECKSH-NOT: -iwithprefix /tmp/
 // CHECKSH-NOT: -iwithprefixbefore /tmp/
+// CHECKSH-NOT: -internal-isystem /tmp/
+// CHECKSH-NOT: -internal-externc-isystem /tmp/





More information about the cfe-commits mailing list