Remove period at end of "optimization level is unsupported" diagnostic

llvm-svn: 195048
This commit is contained in:
Hans Wennborg 2013-11-18 22:10:17 +00:00
parent be5df46f26
commit ff6af8bc21
3 changed files with 3 additions and 3 deletions

View File

@ -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">;

View File

@ -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 \

View File

@ -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