DescriptionSubzero: Use Cfg::getOptLevel() instead of ClFlags version.
The opt level (O2 versus Om1) should be tested using Cfg::getOptLevel() instead of getFlags().getOptLevel() whenever possible.
This is because if you run "-Om1 -force-O2=foo", and you're compiling foo, the first form tells you O2 while the second form tells you Om1.
BUG= none
R=eholk@chromium.org
Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=386b52ed4f409b3ce54eb945d3ba3c7d80e13c11
Patch Set 1 #
Messages
Total messages: 6 (3 generated)
|