[lld] r243568 - COFF: Ignore /ThrowNew command line option.

Rui Ueyama ruiu at google.com
Wed Jul 29 13:29:15 PDT 2015


Author: ruiu
Date: Wed Jul 29 15:29:15 2015
New Revision: 243568

URL: http://llvm.org/viewvc/llvm-project?rev=243568&view=rev
Log:
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.

Modified:
    lld/trunk/COFF/Driver.cpp
    lld/trunk/COFF/Options.td

Modified: lld/trunk/COFF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Driver.cpp?rev=243568&r1=243567&r2=243568&view=diff
==============================================================================
--- lld/trunk/COFF/Driver.cpp (original)
+++ lld/trunk/COFF/Driver.cpp Wed Jul 29 15:29:15 2015
@@ -127,6 +127,8 @@ LinkerDriver::parseDirectives(StringRef
     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);

Modified: lld/trunk/COFF/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Options.td?rev=243568&r1=243567&r2=243568&view=diff
==============================================================================
--- lld/trunk/COFF/Options.td (original)
+++ lld/trunk/COFF/Options.td Wed Jul 29 15:29:15 2015
@@ -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">;





More information about the llvm-commits mailing list