From: Daniel Dunbar Date: Tue, 17 Aug 2010 22:32:45 +0000 (+0000) Subject: Driver: Claim the -mlinker-version synthesized argument, it shouldn't be X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c326b64a4d14ad89d6a5d227d2460050149d5461;p=clang Driver: Claim the -mlinker-version synthesized argument, it shouldn't be reported as unused. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111310 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 4b3bf32b49..5616300b07 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -166,6 +166,7 @@ DerivedArgList *Driver::TranslateInputArgs(const InputArgList &Args) const { 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