forked from OSchip/llvm-project
[PECOFF] It's an error if subsystem is not specified.
llvm-svn: 188150
This commit is contained in:
parent
d265e88827
commit
bf5610cced
|
@ -59,6 +59,11 @@ bool PECOFFLinkingContext::validateImpl(raw_ostream &diagnostics) {
|
|||
return true;
|
||||
}
|
||||
|
||||
if (_subsystem == llvm::COFF::IMAGE_SUBSYSTEM_UNKNOWN) {
|
||||
diagnostics << "Error: Subsystem is not specified\n";
|
||||
return true;
|
||||
}
|
||||
|
||||
_reader = createReaderPECOFF(*this);
|
||||
_writer = createWriterPECOFF(*this);
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue