Revert "[WebAssembly] Fixup `main` signature by default"
commitfd192da8689bef637945fa5eade20abfd25539b5
authorSam Clegg <sbc@chromium.org>
Tue, 6 Nov 2018 00:31:02 +0000 (6 00:31 +0000)
committerSam Clegg <sbc@chromium.org>
Tue, 6 Nov 2018 00:31:02 +0000 (6 00:31 +0000)
tree8fac67e3414380b855ab84351b46593f6500d43c
parent4579aeefa621a70cc0d73a267a4f173e8efef7a2
Revert "[WebAssembly] Fixup `main` signature by default"

This reverts rL345880.  It caused some test failures on the
webassembly waterfall.  e.g. binaryen2.test_mainenv fails due
the fact that `envp` ends up being undef rather than 0.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346187 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
test/CodeGen/WebAssembly/call.ll
test/CodeGen/WebAssembly/function-bitcasts-varargs.ll
test/CodeGen/WebAssembly/function-bitcasts.ll
test/CodeGen/WebAssembly/main-declaration.ll
test/CodeGen/WebAssembly/main-no-args.ll
test/CodeGen/WebAssembly/main-with-args.ll