From: Rui Ueyama Date: Wed, 29 Jul 2015 20:29:15 +0000 (+0000) Subject: COFF: Ignore /ThrowNew command line option. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46682630f41e0ed95b7f5ea73f2445357b16c67b;p=platform%2Fupstream%2Fllvm.git 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 --- diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp index 6d2f484..ff14b81 100644 --- a/lld/COFF/Driver.cpp +++ b/lld/COFF/Driver.cpp @@ -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); diff --git a/lld/COFF/Options.td b/lld/COFF/Options.td index 2200550..45cf367 100644 --- a/lld/COFF/Options.td +++ b/lld/COFF/Options.td @@ -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">;