This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Change wasm SizeType to match asmjs
ClosedPublic

Authored by jgravelle-google on Sep 1 2016, 7:47 AM.

Details

Summary

We want wasm and asmjs to have matching ABIs, and right now asmjs uses unsigned int for its size_t. This causes exported symbols in libcxx to not match and can cause weird breakage where libcxx doesn't get linked as a result.
Long-term we probably want wasm32, wasm64, and asmjs to all use unsigned long, but that would cause unnecessary ABI churn for asmjs so defer that until we can make all the ABI changes at once.

Diff Detail

Repository
rL LLVM

Event Timeline

jgravelle-google retitled this revision from to [WebAssembly] Change wasm SizeType to match asmjs.
jgravelle-google updated this object.
jgravelle-google added a reviewer: dschuff.
jgravelle-google added a subscriber: cfe-commits.
dschuff accepted this revision.Sep 1 2016, 11:33 AM
dschuff edited edge metadata.
dschuff added a subscriber: sunfish.

LGTM

This revision is now accepted and ready to land.Sep 1 2016, 11:33 AM
This comment was removed by dschuff.

LGTM as a temporary workaround.

This revision was automatically updated to reflect the committed changes.