[Swift+WASM] Allow Wasm object format.

- This currently does nothing more than adopt the ELF conventions, but for the
   Wasm object file format.
This commit is contained in:
Daniel Dunbar
2018-11-20 09:23:28 -07:00
parent 694b153992
commit 1efee0c27a
7 changed files with 24 additions and 19 deletions

View File

@@ -1033,6 +1033,7 @@ void IRGenModule::emitAutolinkInfo() {
} else {
assert((TargetInfo.OutputObjectFormat == llvm::Triple::ELF ||
TargetInfo.OutputObjectFormat == llvm::Triple::Wasm ||
Triple.isOSCygMing()) &&
"expected ELF output format or COFF format for Cygwin/MinGW");