[WebAssembly] Change indices types to unsined int (NFC)
authorHeejin Ahn <aheejin@gmail.com>
Fri, 2 Nov 2018 19:25:09 +0000 (19:25 +0000)
committerHeejin Ahn <aheejin@gmail.com>
Fri, 2 Nov 2018 19:25:09 +0000 (19:25 +0000)
commit4808914a5829ebdb19d0eb5ab93281169db8ad2d
tree6abc7e088fdc03dba56c28a6ff68f1bbfb167d34
parent78f7a6eaa601bfdd6ae70ffd3da2254c21ff77f9
[WebAssembly] Change indices types to unsined int (NFC)

Summary:
This changes int types to unsigned int in a few places: function indices
and `wasm::Valtype` (which is unsigend int enum).  Currently these
values cannot have negative values anyway, so this should not be a
functional change for now.

Reviewers: sbc100

Subscribers: dschuff, jgravelle-google, sunfish, llvm-commits

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

llvm-svn: 346031
llvm/lib/MC/WasmObjectWriter.cpp