Skip to content

Commit 4acc199

Browse files
Merge pull request #5455 from swiftwasm/katei/revert-got-direct-hack
[wasm] Revert GOT direction in IRGen
2 parents 62d47d1 + aeb91ab commit 4acc199

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/IRGen/GenDecl.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3783,12 +3783,6 @@ IRGenModule::getAddrOfLLVMVariableOrGOTEquivalent(LinkEntity entity) {
37833783
return {gotEquivalent, ConstantReference::Indirect};
37843784
};
37853785

3786-
// Avoid to create GOT because wasm32 doesn't support
3787-
// dynamic linking yet
3788-
if (TargetInfo.OutputObjectFormat == llvm::Triple::Wasm) {
3789-
return direct();
3790-
}
3791-
37923786
// Dynamically replaceable function keys are stored in the GlobalVars
37933787
// table, but they don't have an associated Decl, so they require
37943788
// special treatment here.

0 commit comments

Comments
 (0)