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.
Paths
| Differential D132929
[WebAssembly][MC] Avoid the need for .size directives for functions ClosedPublic Authored by sbc100 on Aug 30 2022, 4:38 AM.
Details Summary Warn if .size is specified for a function symbol. The size of a I noticed this simplification was possible while debugging #57427, but
Diff Detail
Unit TestsFailed Event Timeline
This revision is now accepted and ready to land.Aug 31 2022, 11:22 AM This revision was landed with ongoing or failed builds.Aug 31 2022, 2:32 PM Closed by commit rGc5c4ba37b19e: [WebAssembly][MC] Avoid the need for .size directives for functions (authored by sbc100). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 456618 llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/MC/MCParser/WasmAsmParser.cpp
llvm/lib/MC/WasmObjectWriter.cpp
llvm/test/MC/WebAssembly/function-size-warning.s
llvm/test/MC/WebAssembly/stack-ptr-mclower.ll
|
This isn't for .size, but for the func_end symbol. It looks like (line 1727 below) the func end is stored in a list of MBB section ranges, and MBBSectionRanges is used for debug info generation. Does removing this symbol have an effect on debug info?