[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)
commitacdc8e6355b2dde24f83441640063bd04af148c5
treebdb9c63360757ce0306f475e8d40729d5ddf25de
parent67473526cb503819e0461ce5432fc128dd4207d1
[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

llvm-svn: 280420
clang/lib/Basic/Targets.cpp
clang/test/Preprocessor/init.c