r291881 - Another fix for r291850 because there are apparently targets which add
Chandler Carruth via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 12 18:47:35 PST 2017
Author: chandlerc
Date: Thu Jan 12 20:47:34 2017
New Revision: 291881
URL: http://llvm.org/viewvc/llvm-project?rev=291881&view=rev
Log:
Another fix for r291850 because there are apparently targets which add
"-mllvm" flags to the CC1 invocation (notably, Hexagon seems to hit
this).
Modified:
cfe/trunk/test/Driver/disable-llvm.c
Modified: cfe/trunk/test/Driver/disable-llvm.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/disable-llvm.c?rev=291881&r1=291880&r2=291881&view=diff
==============================================================================
--- cfe/trunk/test/Driver/disable-llvm.c (original)
+++ cfe/trunk/test/Driver/disable-llvm.c Thu Jan 12 20:47:34 2017
@@ -2,8 +2,8 @@
// RUN: %clang -O2 -Xclang -disable-llvm-passes -### %s 2>&1 \
// RUN: | FileCheck --check-prefix=DISABLED %s
// DISABLED: -cc1
-// DISABLED-NOT: -mllvm
-// DISABLED: -disable-llvm-passes
+// DISABLED-NOT: "-mllvm" "-disable-llvm-passes"
+// DISABLED: "-disable-llvm-passes"
//
// We also support two alternative spellings for historical reasons.
// RUN: %clang -O2 -Xclang -disable-llvm-optzns -### %s 2>&1 \
@@ -11,8 +11,8 @@
// RUN: %clang -O2 -mllvm -disable-llvm-optzns -### %s 2>&1 \
// RUN: | FileCheck --check-prefix=DISABLED-LEGACY %s
// DISABLED-LEGACY: -cc1
-// DISABLED-LEGACY-NOT: -mllvm
-// DISABLED-LEGACY: -disable-llvm-optzns
+// DISABLED-LEGACY-NOT: "-mllvm" "-disable-llvm-optzns"
+// DISABLED-LEGACY: "-disable-llvm-optzns"
//
// The main flag shouldn't be specially handled when used with '-mllvm'.
// RUN: %clang -O2 -mllvm -disable-llvm-passes -### %s 2>&1 | FileCheck --check-prefix=MLLVM %s
More information about the cfe-commits
mailing list