diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp index cb9a5278ba7e..f36c06ffd9f8 100644 --- a/lld/COFF/Driver.cpp +++ b/lld/COFF/Driver.cpp @@ -120,6 +120,7 @@ void LinkerDriver::parseDirectives(StringRef S) { Config->NoDefaultLibs.insert(doFindLib(Arg->getValue())); break; case OPT_editandcontinue: + case OPT_guardsym: case OPT_throwingnew: break; default: diff --git a/lld/COFF/Options.td b/lld/COFF/Options.td index 2957dc171cb9..2402b80f88d0 100644 --- a/lld/COFF/Options.td +++ b/lld/COFF/Options.td @@ -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">;