[cfe-commits] r153470 - /cfe/trunk/lib/Driver/Tools.cpp
Chad Rosier
mcrosier at apple.com
Mon Mar 26 14:35:40 PDT 2012
Author: mcrosier
Date: Mon Mar 26 16:35:40 2012
New Revision: 153470
URL: http://llvm.org/viewvc/llvm-project?rev=153470&view=rev
Log:
[driver] -mkernel implies -fno-common, so claim the arg to avoid an unused
argument warning.
Part of rdar://11120518
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=153470&r1=153469&r2=153470&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Mon Mar 26 16:35:40 2012
@@ -2401,6 +2401,7 @@
Args.hasArg(options::OPT_fapple_kext)) {
if (!Args.hasArg(options::OPT_fcommon))
CmdArgs.push_back("-fno-common");
+ Args.ClaimAllArgs(options::OPT_fno_common);
}
// -fcommon is default, only pass non-default.
More information about the cfe-commits
mailing list