[cfe-commits] r111310 - /cfe/trunk/lib/Driver/Driver.cpp
Daniel Dunbar
daniel at zuster.org
Tue Aug 17 15:32:45 PDT 2010
Author: ddunbar
Date: Tue Aug 17 17:32:45 2010
New Revision: 111310
URL: http://llvm.org/viewvc/llvm-project?rev=111310&view=rev
Log:
Driver: Claim the -mlinker-version synthesized argument, it shouldn't be
reported as unused.
Modified:
cfe/trunk/lib/Driver/Driver.cpp
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=111310&r1=111309&r2=111310&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Tue Aug 17 17:32:45 2010
@@ -166,6 +166,7 @@
if (!Args.hasArg(options::OPT_mlinker_version_EQ)) {
DAL->AddJoinedArg(0, Opts->getOption(options::OPT_mlinker_version_EQ),
HOST_LINK_VERSION);
+ DAL->getLastArg(options::OPT_mlinker_version_EQ)->claim();
}
#endif
More information about the cfe-commits
mailing list