[all-commits] [llvm/llvm-project] c5c4ba: [WebAssembly][MC] Avoid the need for .size directi...

Sam Clegg via All-commits all-commits at lists.llvm.org
Wed Aug 31 14:33:00 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c5c4ba37b19e14f3f4c9c1bf950d46e90602c084
      https://github.com/llvm/llvm-project/commit/c5c4ba37b19e14f3f4c9c1bf950d46e90602c084
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2022-08-31 (Wed, 31 Aug 2022)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/lib/MC/MCParser/WasmAsmParser.cpp
    M llvm/lib/MC/WasmObjectWriter.cpp
    M llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
    A llvm/test/MC/WebAssembly/function-size-warning.s
    M llvm/test/MC/WebAssembly/stack-ptr-mclower.ll
    M llvm/test/MC/WebAssembly/tables.s
    M llvm/test/MC/WebAssembly/wasm64.s

  Log Message:
  -----------
  [WebAssembly][MC] Avoid the need for .size directives for functions

Warn if `.size` is specified for a function symbol.  The size of a
function symbol is determined solely by its content.

I noticed this simplification was possible while debugging #57427, but
this change doesn't fix that specific issue.

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




More information about the All-commits mailing list