]> granicus.if.org Git - clang/commit
[WebAssembly] Change wasm SizeType to match asmjs
authorDerek Schuff <dschuff@google.com>
Thu, 1 Sep 2016 22:38:37 +0000 (22:38 +0000)
committerDerek Schuff <dschuff@google.com>
Thu, 1 Sep 2016 22:38:37 +0000 (22:38 +0000)
commit2771c6d0731c0bd7fff3a75332ddacfd9f127c32
treec441bbb1633a6aade28ea1ab70a7da556189c421
parent7e8dc8a5df27b2ef6bbbffcbd974ea94f5cc8a6c
[WebAssembly] Change wasm SizeType to match asmjs

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.

Patch by Jacob Gravelle

Differential Revision: https://reviews.llvm.org/D24134

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280420 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/Preprocessor/init.c