HomePhabricator

[WebAssembly] Teach lld how to demangle "__main_argc_argv".

Authored by sunfishcode on Feb 27 2020, 7:51 AM.

Description

[WebAssembly] Teach lld how to demangle "__main_argc_argv".

WebAssembly requires that caller and callee signatures match, so it
can't do the usual trick of passing more arguments to main than it
expects. Instead WebAssembly will mangle "main" with argc/argv
parameters as "__main_argc_argv". This patch teaches lld how to
demangle it.

This patch is part of https://reviews.llvm.org/D70700.

Details

Committed
sunfishcodeFeb 27 2020, 7:55 AM
Parents
rGc08384a3aeeb: [WebAssembly] Add an `isWasm` target triple predicate.
Branches
Unknown
Tags
Unknown