COFF: Add /nodefaultlib and /merge for .drectve.

llvm-svn: 240077
This commit is contained in:
Rui Ueyama 2015-06-18 23:22:39 +00:00
parent 08d5e1875f
commit ce86c9962c
1 changed files with 6 additions and 0 deletions

View File

@ -121,6 +121,12 @@ LinkerDriver::parseDirectives(StringRef S,
case OPT_incl:
Config->Includes.insert(Arg->getValue());
break;
case OPT_merge:
// Ignore /merge for now.
break;
case OPT_nodefaultlib:
Config->NoDefaultLibs.insert(doFindLib(Arg->getValue()));
break;
default:
llvm::errs() << Arg->getSpelling() << " is not allowed in .drectve\n";
return make_error_code(LLDError::InvalidOption);