[WebAssembly] Fix function return type printing
authorDerek Schuff <dschuff@google.com>
Mon, 16 Nov 2015 21:12:41 +0000 (21:12 +0000)
committerDerek Schuff <dschuff@google.com>
Mon, 16 Nov 2015 21:12:41 +0000 (21:12 +0000)
commit1a4e019fc0dec593268af08eeede197f10fcd727
treec10d94bfa252132e285f6fdc29b095f1aa1ef896
parent8f9915e419f46351170998290a7a1a43f839ca10
[WebAssembly] Fix function return type printing

Summary:
Previously return type information for a function was derived from
return dag nodes. But this didn't work for dags with != return node. So
instead compute it directly from the LLVM function as is done for imports.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253251 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
test/CodeGen/WebAssembly/func.ll