COFF: Ignore /ThrowNew command line option.

This command line option is added since MSVC 2015. Our wild guess is
that the flag is for LTCG and we can safely ignore that.

llvm-svn: 243568
This commit is contained in:
Rui Ueyama 2015-07-29 20:29:15 +00:00
parent fda777c37e
commit 46682630f4
2 changed files with 3 additions and 0 deletions

View File

@ -127,6 +127,8 @@ LinkerDriver::parseDirectives(StringRef S) {
case OPT_nodefaultlib:
Config->NoDefaultLibs.insert(doFindLib(Arg->getValue()));
break;
case OPT_thrownew:
break;
default:
llvm::errs() << Arg->getSpelling() << " is not allowed in .drectve\n";
return make_error_code(LLDError::InvalidOption);

View File

@ -105,6 +105,7 @@ def ignoreidl : F<"ignoreidl">;
def incremental : F<"incremental">;
def no_incremental : F<"incremental:no">;
def nologo : F<"nologo">;
def thrownew : F<"thrownew">;
def delay : QF<"delay">;
def errorreport : QF<"errorreport">;