summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2019-01-29 10:53:42 +0000
committerDan Gohman <dan433584@gmail.com>2019-01-29 10:53:42 +0000
commit4684f824d4c143d483e31fa859a9948497f19c02 (patch)
tree496d95d9176ac5db938574b5e9f20934b2e6162e /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
parent2cdb2bd82b78503b38f8505644269b27271e5911 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud