lld-link: Stop accepting /natvis and /fastfail in .drectve sections

link.exe doesn't accept them either.

Differential Revision: https://reviews.llvm.org/D64352

llvm-svn: 365478
This commit is contained in:
Nico Weber 2019-07-09 13:30:03 +00:00
parent 480e8ad217
commit e7a67bf8ce
1 changed files with 2 additions and 2 deletions

View File

@ -365,10 +365,10 @@ void LinkerDriver::parseDirectives(InputFile *File) {
parseSubsystem(Arg->getValue(), &Config->Subsystem,
&Config->MajorOSVersion, &Config->MinorOSVersion);
break;
// Only add flags here that link.exe accepts in
// `#pragma comment(linker, "/flag")`-generated sections.
case OPT_editandcontinue:
case OPT_fastfail:
case OPT_guardsym:
case OPT_natvis:
case OPT_throwingnew:
break;
default: