]> granicus.if.org Git - clang/commit
[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)
commit4c4d20cbc7d9f7a5d45071f965f3f8950c9b78cf
tree3e49046a4d955ff236eec1d421b107d9af37c8c0
parentdb6649baa2a2f6e3a8ca27e13e086827fd192abf
[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

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