IRGen: collocate WASM/ELF handling

WASM currently is treated identically to the ELF paths.  Collocate the
types to make it easier to ensure that all the paths are correctly
handling the emission.  This adds the missed case for the module hash.
This commit is contained in:
Saleem Abdulrasool
2019-12-09 09:21:04 -08:00
parent 01f46b3887
commit 636564e2cd
3 changed files with 4 additions and 7 deletions

View File

@@ -1269,6 +1269,7 @@ bool IRGenModule::finalize() {
ModuleHash->setSection("__LLVM,__swift_modhash");
break;
case llvm::Triple::ELF:
case llvm::Triple::Wasm:
ModuleHash->setSection(".swift_modhash");
break;
case llvm::Triple::COFF: