aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineOperand.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2017-12-07 13:49:27 +0000
committerDan Gohman <dan433584@gmail.com>2017-12-07 13:49:27 +0000
commitcdaa87dd2e5c91127348ca998ddac87f9622e88b (patch)
treeeb14ff1bba7740a481e10b293f86040a14863e55 /llvm/lib/CodeGen/MachineOperand.cpp
parent439679c085373044bfc9ddb4e9f0197b000e180d (diff)
downloadllvm-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