[all-commits] [llvm/llvm-project] a872ee: [WebAssembly] ensure .functype applies to right la...

Wouter van Oortmerssen via All-commits all-commits at lists.llvm.org
Fri Feb 5 15:36:48 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a872ee2f36d1be16c1b6d4eeac623852434df0bb
      https://github.com/llvm/llvm-project/commit/a872ee2f36d1be16c1b6d4eeac623852434df0bb
  Author: Wouter van Oortmerssen <aardappel at gmail.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
    M llvm/test/MC/WebAssembly/basic-assembly.s

  Log Message:
  -----------
  [WebAssembly] ensure .functype applies to right label in assembler

We used to require .functype immediately follows the label it sets the type of, but not all Clang output follows this rule.

Now we simply allow it on any symbol, but only assume its a function start for a defined symbol, which is simpler and more general.

Fixes (part of) https://bugs.llvm.org/show_bug.cgi?id=49036

Differential Revision: https://reviews.llvm.org/D96165




More information about the All-commits mailing list