[llvm-branch-commits] [cfe-branch] r119266 - /cfe/branches/Apple/whitney/lib/Driver/Tools.cpp
Daniel Dunbar
daniel at zuster.org
Mon Nov 15 13:47:02 PST 2010
Author: ddunbar
Date: Mon Nov 15 15:47:02 2010
New Revision: 119266
URL: http://llvm.org/viewvc/llvm-project?rev=119266&view=rev
Log:
Merge r119003:
--
Author: Daniel Dunbar <daniel at zuster.org>
Date: Sat Nov 13 18:17:11 2010 +0000
Driver: Support -Oz as an alias for -Os.
Modified:
cfe/branches/Apple/whitney/lib/Driver/Tools.cpp
Modified: cfe/branches/Apple/whitney/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/whitney/lib/Driver/Tools.cpp?rev=119266&r1=119265&r2=119266&view=diff
==============================================================================
--- cfe/branches/Apple/whitney/lib/Driver/Tools.cpp (original)
+++ cfe/branches/Apple/whitney/lib/Driver/Tools.cpp Mon Nov 15 15:47:02 2010
@@ -1090,6 +1090,10 @@
else if (A->getOption().matches(options::OPT_O) &&
A->getValue(Args)[0] == '\0')
CmdArgs.push_back("-O2");
+ else if (A->getOption().matches(options::OPT_O) &&
+ A->getValue(Args)[0] == 'z' &&
+ A->getValue(Args)[1] == '\0')
+ CmdArgs.push_back("-Os");
else
A->render(Args, CmdArgs);
}
More information about the llvm-branch-commits
mailing list