[WebAssemby] Re-apply r320041: "Support main functions with alternate signatures."
authorDan Gohman <dan433584@gmail.com>
Fri, 8 Dec 2017 21:18:21 +0000 (21:18 +0000)
committerDan Gohman <dan433584@gmail.com>
Fri, 8 Dec 2017 21:18:21 +0000 (21:18 +0000)
commit6736f5907875d3cd0e27ae5ff6d9d7e6072f10a5
tree725704541dd354c7a5e289e40f54d0fecc6416d6
parent5d7a9e6e54f6ab7d290532f605be57e5b515e78a
[WebAssemby] Re-apply r320041: "Support main functions with alternate signatures."

This includes a fix so that it doesn't transform declarations, and it
puts the functionality under control of a command-line option which is off
by default to avoid breaking existing setups.

llvm-svn: 320196
llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
llvm/test/CodeGen/WebAssembly/main-declaration.ll [new file with mode: 0644]
llvm/test/CodeGen/WebAssembly/main.ll [new file with mode: 0644]