OSDN Git Service

[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)
commit2e99c3afdad5b63a6a999e4de2e3ed2b8fa7a2a8
tree1d41393696fc481997eb984d46fae54dd326e78f
parent789bf2ab8bbea231d5bef3314abcf6be50ad4129
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320196 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
test/CodeGen/WebAssembly/main-declaration.ll [new file with mode: 0644]
test/CodeGen/WebAssembly/main.ll [new file with mode: 0644]