forked from OSchip/llvm-project
Driver: Claim the -mlinker-version synthesized argument, it shouldn't be
reported as unused. llvm-svn: 111310
This commit is contained in:
parent
09b0c78918
commit
b613ffc1aa
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue