mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 06:18:56 -04:00

This provides better help text in "clang-cl /?". Also it cleans things up a bit: previously "/Od" could be handled either as a separate flag aliased to "-O0", or by the main optimization flag processing in TranslateOptArg. With this patch, all the flags get aliased back to /O so they're handled by TranslateOptArg. Thanks to Nico for the idea! Differential revision: https://reviews.llvm.org/D52266 llvm-svn: 342977
13 lines
680 B
C
13 lines
680 B
C
// RUN: %clang -target i386-apple-darwin9 -m32 -Xarch_i386 -O3 %s -S -### 2>&1 | FileCheck -check-prefix=O3ONCE %s
|
|
// O3ONCE: "-O3"
|
|
// O3ONCE-NOT: "-O3"
|
|
|
|
// RUN: %clang -target i386-apple-darwin9 -m64 -Xarch_i386 -O3 %s -S -### 2>&1 | FileCheck -check-prefix=O3NONE %s
|
|
// O3NONE-NOT: "-O3"
|
|
// O3NONE: argument unused during compilation: '-Xarch_i386 -O3'
|
|
|
|
// RUN: not %clang -target i386-apple-darwin9 -m32 -Xarch_i386 -o -Xarch_i386 -S %s -S -Xarch_i386 -o 2>&1 | FileCheck -check-prefix=INVALID %s
|
|
// INVALID: error: invalid Xarch argument: '-Xarch_i386 -o'
|
|
// INVALID: error: invalid Xarch argument: '-Xarch_i386 -S'
|
|
// INVALID: error: invalid Xarch argument: '-Xarch_i386 -o'
|