Remove period at end of "optimization level is unsupported" diagnostic
llvm-svn: 195048
This commit is contained in:
parent
be5df46f26
commit
ff6af8bc21
|
@ -113,7 +113,7 @@ def err_drv_unknown_toolchain : Error<
|
|||
"cannot recognize the type of the toolchain">;
|
||||
|
||||
def warn_O4_is_O3 : Warning<"-O4 is equivalent to -O3">, InGroup<Deprecated>;
|
||||
def warn_drv_optimization_value : Warning<"optimization level '%0' is unsupported; using '%1%2' instead.">,
|
||||
def warn_drv_optimization_value : Warning<"optimization level '%0' is unsupported; using '%1%2' instead">,
|
||||
InGroup<InvalidCommandLineArgument>;
|
||||
def warn_c_kext : Warning<
|
||||
"ignoring -fapple-kext which is valid for C++ and Objective-C++ only">;
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
// CHECK-MAX-O: -O3
|
||||
|
||||
// RUN: %clang -S -O20 -o /dev/null %s 2>&1 | FileCheck -check-prefix=CHECK-INVALID-O %s
|
||||
// CHECK-INVALID-O: warning: optimization level '-O20' is unsupported; using '-O3' instead.
|
||||
// CHECK-INVALID-O: warning: optimization level '-O20' is unsupported; using '-O3' instead
|
||||
|
||||
// Test that we don't error on these.
|
||||
// RUN: %clang -### -S -Werror \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 %s -O900 -o /dev/null 2> %t.log
|
||||
// RUN: FileCheck %s -input-file=%t.log
|
||||
|
||||
// CHECK: warning: optimization level '-O900' is unsupported; using '-O3' instead.
|
||||
// CHECK: warning: optimization level '-O900' is unsupported; using '-O3' instead
|
||||
|
|
Loading…
Reference in New Issue