1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Start of wasm support

This commit is contained in:
Brian Fiete 2020-08-06 09:24:37 -07:00
parent 053b302d42
commit b7b065855d
22 changed files with 487 additions and 35 deletions

View file

@ -1688,7 +1688,8 @@ void BfContext::UpdateRevisedTypes()
int wantPtrSize;
if ((mCompiler->mOptions.mMachineType == BfMachineType_x86) |
(mCompiler->mOptions.mMachineType == BfMachineType_ARM))
(mCompiler->mOptions.mMachineType == BfMachineType_ARM) ||
(mCompiler->mOptions.mMachineType == BfMachineType_Wasm32))
wantPtrSize = 4;
else
wantPtrSize = 8;