diff options
author | Dan Gohman <dan433584@gmail.com> | 2019-01-29 10:53:42 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2019-01-29 10:53:42 +0000 |
commit | 4684f824d4c143d483e31fa859a9948497f19c02 (patch) | |
tree | 496d95d9176ac5db938574b5e9f20934b2e6162e /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | 2cdb2bd82b78503b38f8505644269b27271e5911 (diff) | |
download | bcm5719-llvm-4684f824d4c143d483e31fa859a9948497f19c02.tar.gz bcm5719-llvm-4684f824d4c143d483e31fa859a9948497f19c02.zip |
[WebAssembly] Re-enable main-function signature rewriting
Re-enable the code to rewrite main-function signatures into
"int main(int argc, char *argv[])", but limited to only handling
the case of "int main(void)", so that it doesn't silently strip
an argument in the "int main(int argc, char *argv[], char *envp[])"
case.
This allows main to be called by C startup code, since WebAssembly
requires caller and callee signatures to match, so it can't rely
on passing main a different number of arguments than it expects.
Differential Revision: https://reviews.llvm.org/D57323
llvm-svn: 352479
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
0 files changed, 0 insertions, 0 deletions