mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user