[WebAssembly] Encode block signatures as SLEB instead of ULEB
authorDerek Schuff <dschuff@google.com>
Mon, 17 Apr 2017 20:28:28 +0000 (20:28 +0000)
committerDerek Schuff <dschuff@google.com>
Mon, 17 Apr 2017 20:28:28 +0000 (20:28 +0000)
commitf7a4f3dd95b907b693a986cb0cf076fa1e93e276
treea0a4e2778d2176635c2db7e2dbb0912b7eed6d68
parent86321b2bc8350428d0b2eb81fff09d49098e9359
[WebAssembly] Encode block signatures as SLEB instead of ULEB

Use SLEB (varint) for block_type immediates in accordance with the spec.

Patch by Yury Delendik

llvm-svn: 300490
llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp