[WebAssembly] Fix signature of `main` in FixFunctionBitcasts
authorSam Clegg <sbc@chromium.org>
Thu, 13 Sep 2018 17:13:10 +0000 (17:13 +0000)
committerSam Clegg <sbc@chromium.org>
Thu, 13 Sep 2018 17:13:10 +0000 (17:13 +0000)
commit79c054f6b8b0f7989366f56c84ee30f92e3e6b1f
tree91aebc9b1f3eb4803b70f01e926738b48d78d571
parentdbdd46da186df61af6f9ea614d89979e0715cc52
[WebAssembly] Fix signature of `main` in FixFunctionBitcasts

Also, add a check to ensure that when main has the expected signature
we do not create a wrapper.

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

llvm-svn: 342157
llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
llvm/test/CodeGen/WebAssembly/main-no-args.ll [moved from llvm/test/CodeGen/WebAssembly/main.ll with 100% similarity]
llvm/test/CodeGen/WebAssembly/main-with-args.ll [new file with mode: 0644]