[all-commits] [llvm/llvm-project] c08384: [WebAssembly] Add an `isWasm` target triple predic...

Dan Gohman via All-commits all-commits at lists.llvm.org
Thu Feb 27 07:55:03 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c08384a3aeeb81646750543cd5637e096d6fc4b1
      https://github.com/llvm/llvm-project/commit/c08384a3aeeb81646750543cd5637e096d6fc4b1
  Author: Dan Gohman <sunfish at mozilla.com>
  Date:   2020-02-27 (Thu, 27 Feb 2020)

  Changed paths:
    M llvm/include/llvm/ADT/Triple.h

  Log Message:
  -----------
  [WebAssembly] Add an `isWasm` target triple predicate.

This simplies code which needs to apply the same logic to both wasm32
and wasm64.

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


  Commit: 197bda587b4bb5e7603ad05fc1106332edc6afbd
      https://github.com/llvm/llvm-project/commit/197bda587b4bb5e7603ad05fc1106332edc6afbd
  Author: Dan Gohman <sunfish at mozilla.com>
  Date:   2020-02-27 (Thu, 27 Feb 2020)

  Changed paths:
    M lld/wasm/Symbols.cpp

  Log Message:
  -----------
  [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.


Compare: https://github.com/llvm/llvm-project/compare/080890a9f38f...197bda587b4b


More information about the All-commits mailing list