r191380 - Produce an error if a -cc1 only option is passed to the driver.
Rafael Espindola
rafael.espindola at gmail.com
Wed Sep 25 08:54:41 PDT 2013
Author: rafael
Date: Wed Sep 25 10:54:41 2013
New Revision: 191380
URL: http://llvm.org/viewvc/llvm-project?rev=191380&view=rev
Log:
Produce an error if a -cc1 only option is passed to the driver.
Modified:
cfe/trunk/lib/Driver/Driver.cpp
cfe/trunk/test/Driver/unknown-arg.c
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=191380&r1=191379&r2=191380&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Wed Sep 25 10:54:41 2013
@@ -2014,7 +2014,7 @@ bool Driver::GetReleaseVersion(const cha
std::pair<unsigned, unsigned> Driver::getIncludeExcludeOptionFlagMasks() const {
unsigned IncludedFlagsBitmask = 0;
- unsigned ExcludedFlagsBitmask = 0;
+ unsigned ExcludedFlagsBitmask = options::NoDriverOption;
if (Mode == CLMode) {
// Include CL and Core options.
Modified: cfe/trunk/test/Driver/unknown-arg.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/unknown-arg.c?rev=191380&r1=191379&r2=191380&view=diff
==============================================================================
--- cfe/trunk/test/Driver/unknown-arg.c (original)
+++ cfe/trunk/test/Driver/unknown-arg.c Wed Sep 25 10:54:41 2013
@@ -1,4 +1,4 @@
-// RUN: not %clang_cc1 %s -cake-is-lie -%0 -%d -HHHH -munknown-to-clang-option 2>&1 | \
+// RUN: not %clang %s -cake-is-lie -%0 -%d -HHHH -munknown-to-clang-option -print-stats 2>&1 | \
// RUN: FileCheck %s
// CHECK: unknown argument: '-cake-is-lie'
@@ -6,6 +6,7 @@
// CHECK: unknown argument: '-%d'
// CHECK: unknown argument: '-HHHH'
// CHECK: unknown argument: '-munknown-to-clang-option'
+// CHECK: unknown argument: '-print-stats'
// RUN: %clang -S %s -o %t.s -funknown-to-clang-option -Wunknown-to-clang-option 2>&1 | FileCheck --check-prefix=IGNORED %s
More information about the cfe-commits
mailing list