diff options
author | Dan Gohman <dan433584@gmail.com> | 2017-12-07 13:49:27 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2017-12-07 13:49:27 +0000 |
commit | cdaa87dd2e5c91127348ca998ddac87f9622e88b (patch) | |
tree | eb14ff1bba7740a481e10b293f86040a14863e55 /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | 439679c085373044bfc9ddb4e9f0197b000e180d (diff) | |
download | llvm-cdaa87dd2e5c91127348ca998ddac87f9622e88b.zip llvm-cdaa87dd2e5c91127348ca998ddac87f9622e88b.tar.gz llvm-cdaa87dd2e5c91127348ca998ddac87f9622e88b.tar.bz2 |
[WebAssemby] Support main functions with alternate signatures.
WebAssembly requires caller and callee signatures to match, so the usual
C runtime trick of calling main and having it just work regardless of
whether main is defined as '()' or '(int argc, char *argv[])' doesn't
work. Extend the FixFunctionBitcasts pass to rewrite main to use the
latter form.
llvm-svn: 320041
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions