[lld] r246780 - COFF: Ignore /GUARDSYM option.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 3 09:20:47 PDT 2015


Author: ruiu
Date: Thu Sep  3 11:20:47 2015
New Revision: 246780

URL: http://llvm.org/viewvc/llvm-project?rev=246780&view=rev
Log:
COFF: Ignore /GUARDSYM option.

The option is added in MSVC 2015, and there's no documentation about
what the option is. This patch is to ignore the option for now, so that
at least LLD is usable with MSVC 2015.

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=246780&r1=246779&r2=246780&view=diff
==============================================================================
--- lld/trunk/COFF/Driver.cpp (original)
+++ lld/trunk/COFF/Driver.cpp Thu Sep  3 11:20:47 2015
@@ -120,6 +120,7 @@ void LinkerDriver::parseDirectives(Strin
       Config->NoDefaultLibs.insert(doFindLib(Arg->getValue()));
       break;
     case OPT_editandcontinue:
+    case OPT_guardsym:
     case OPT_throwingnew:
       break;
     default:

Modified: lld/trunk/COFF/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Options.td?rev=246780&r1=246779&r2=246780&view=diff
==============================================================================
--- lld/trunk/COFF/Options.td (original)
+++ lld/trunk/COFF/Options.td Thu Sep  3 11:20:47 2015
@@ -117,5 +117,6 @@ def pdbaltpath : QF<"pdbaltpath">;
 def tlbid : QF<"tlbid">;
 def tlbout : QF<"tlbout">;
 def verbose_all : QF<"verbose">;
+def guardsym : QF<"guardsym">;
 
 defm wx : QB<"wx">;




More information about the llvm-commits mailing list