[WebAssembly] Fix printing of global operands
authorDerek Schuff <dschuff@google.com>
Tue, 17 Nov 2015 00:20:44 +0000 (00:20 +0000)
committerDerek Schuff <dschuff@google.com>
Tue, 17 Nov 2015 00:20:44 +0000 (00:20 +0000)
commit36eebaa409ab1bceb9ad0d4fb8ad7e47d61bd31c
treee1b7c177a2b5c35be4aa891695be51d139378c1c
parent1836bbe6cd5597893e3b1c2837c6bb6fb4507264
[WebAssembly] Fix printing of global operands

This was regressed in r252656 which wasn't quite NFC. Instead of using a
custom instruction as before, use a pattern to select CONST_I32 for the
global addrs.

Differential Revision: http://reviews.llvm.org/D14587

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253276 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyInstrInfo.td
test/CodeGen/WebAssembly/global.ll