COFF: Ignore /ThrowNew command line option.
authorRui Ueyama <ruiu@google.com>
Wed, 29 Jul 2015 20:29:15 +0000 (20:29 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 29 Jul 2015 20:29:15 +0000 (20:29 +0000)
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

lld/COFF/Driver.cpp
lld/COFF/Options.td

index 6d2f484..ff14b81 100644 (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);
index 2200550..45cf367 100644 (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">;