]> granicus.if.org Git - clang/commitdiff
Driver: Claim the -mlinker-version synthesized argument, it shouldn't be
authorDaniel Dunbar <daniel@zuster.org>
Tue, 17 Aug 2010 22:32:45 +0000 (22:32 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 17 Aug 2010 22:32:45 +0000 (22:32 +0000)
reported as unused.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111310 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp

index 4b3bf32b492783a4175303c639924913f7996cb1..5616300b0731a2188abeedafe8990d4e42e37141 100644 (file)
@@ -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