Skip to content

Commit aeb91ab

Browse files
[wasm] Revert GOT direction in IRGen
Let's check if the change is essentially required to port. Revert a part of 4c745a8
1 parent c9171c1 commit aeb91ab

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)