[cfe-commits] r119003 - /cfe/trunk/lib/Driver/Tools.cpp

Daniel Dunbar daniel at zuster.org
Sat Nov 13 10:17:11 PST 2010


Author: ddunbar
Date: Sat Nov 13 12:17:11 2010
New Revision: 119003

URL: http://llvm.org/viewvc/llvm-project?rev=119003&view=rev
Log:
Driver: Support -Oz as an alias for -Os.

Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=119003&r1=119002&r2=119003&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Sat Nov 13 12:17:11 2010
@@ -1139,6 +1139,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 cfe-commits mailing list