Driver: Claim the -mlinker-version synthesized argument, it shouldn't be

reported as unused.

llvm-svn: 111310
This commit is contained in:
Daniel Dunbar 2010-08-17 22:32:45 +00:00
parent 09b0c78918
commit b613ffc1aa
1 changed files with 1 additions and 0 deletions

View File

@ -166,6 +166,7 @@ DerivedArgList *Driver::TranslateInputArgs(const InputArgList &Args) const {
if (!Args.hasArg(options::OPT_mlinker_version_EQ)) { if (!Args.hasArg(options::OPT_mlinker_version_EQ)) {
DAL->AddJoinedArg(0, Opts->getOption(options::OPT_mlinker_version_EQ), DAL->AddJoinedArg(0, Opts->getOption(options::OPT_mlinker_version_EQ),
HOST_LINK_VERSION); HOST_LINK_VERSION);
DAL->getLastArg(options::OPT_mlinker_version_EQ)->claim();
} }
#endif #endif