Skip to content

Commit a531027

Browse files
Merge pull request #5428 from swiftwasm/katei/revert-dsolocal-change
[wasm] Revert unnecessary dso_local change
2 parents b91b53f + f179b2a commit a531027

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

include/swift/IRGen/Linking.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,15 +1627,6 @@ class ApplyIRLinkage {
16271627
// TODO: BFD and gold do not handle COMDATs properly
16281628
if (Triple.isOSBinFormatELF())
16291629
return;
1630-
// WebAssembly: hack: comdat + custom section = explosion
1631-
// the comdat code assumes section name would be unique for each comdat
1632-
// this doesn't happen for metadata.
1633-
// And avoid to create GOT because wasm32 doesn't support
1634-
// dynamic linking yet
1635-
if (Triple.isOSBinFormatWasm()) {
1636-
GV->setDSOLocal(true);
1637-
return;
1638-
}
16391630

16401631
// COMDATs cannot be applied to declarations. If we have a definition,
16411632
// apply the COMDAT.

0 commit comments

Comments
 (0)