diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-07-27 07:32:11 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-07-27 07:32:11 +0000 |
commit | 015ce0f68f791b3abec4225c1b2e532ce5020174 (patch) | |
tree | 7b755798a643c838a8f3e25bbbf175715ed04018 /clang/test/Driver/objc-cpp-output.m | |
parent | a96ffd5337191d0862c236e27801aafb6fbc4a9b (diff) | |
download | bcm5719-llvm-015ce0f68f791b3abec4225c1b2e532ce5020174.tar.gz bcm5719-llvm-015ce0f68f791b3abec4225c1b2e532ce5020174.zip |
[clang-cl] Handle -O correctly
We had multiple bugs here:
- We didn't support multiple optimization options in one argument.
e.g. -O2y-
- We didn't correctly expand -O[12dx] to their respective options.
- We treated -O1 as clang -O1 instead of clang -Os.
- We treated -Ox as clang -O3 instead of clang -O2. In fact, cl's -Ox
option is *less* powerful than cl's -O2 option despite -Ox described
as "Full Optimization".
This fixes PR24003.
llvm-svn: 243261
Diffstat (limited to 'clang/test/Driver/objc-cpp-output.m')
0 files changed, 0 insertions, 0 deletions