[WebAssembly] Change size_t to `unsigned long`.
authorDan Gohman <dan433584@gmail.com>
Tue, 24 Jul 2018 00:29:58 +0000 (00:29 +0000)
committerDan Gohman <dan433584@gmail.com>
Tue, 24 Jul 2018 00:29:58 +0000 (00:29 +0000)
commitdf07a35912d78781ed6a62a7c032bfef5085a4f5
tree4ad674b5fa797d04fc234760a950b0db3dc2159c
parent311322aabcd1fd8000c26903326f2ae3c82a146c
[WebAssembly] Change size_t to `unsigned long`.

Changing it to unsigned long (which is 32-bit on wasm32) makes it the same
type as wasm64 (where unsigned long is 64-bit), which would eliminate the most
common cause for mangled names being different between wasm32 and wasm64. For
example, export lists containing symbol names could now often be the same
between wasm32 and wasm64.

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

llvm-svn: 337783
clang/lib/Basic/Targets/WebAssembly.h
clang/test/Preprocessor/init.c