[all-commits] [llvm/llvm-project] 5c38ae: [WebAssembly] Fixed byval args missing DWARF DW_AT...
Wouter van Oortmerssen via All-commits
all-commits at lists.llvm.org
Thu Jan 7 10:37:43 PST 2021
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 5c38ae36c58f5b6bb4a32e9ec2187fde86cf94b8
https://github.com/llvm/llvm-project/commit/5c38ae36c58f5b6bb4a32e9ec2187fde86cf94b8
Author: Wouter van Oortmerssen <aardappel at gmail.com>
Date: 2021-01-07 (Thu, 07 Jan 2021)
Changed paths:
M lld/test/wasm/debuginfo.test
M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
M llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
M llvm/lib/Target/WebAssembly/WebAssemblyDebugValueManager.cpp
M llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp
M llvm/test/CodeGen/WebAssembly/dbgvalue.ll
A llvm/test/MC/WebAssembly/debug-byval-struct.ll
Log Message:
-----------
[WebAssembly] Fixed byval args missing DWARF DW_AT_LOCATION
A struct in C passed by value did not get debug information. Such values are currently
lowered to a Wasm local even in -O0 (not to an alloca like on other archs), which becomes
a Target Index operand (TI_LOCAL). The DWARF writing code was not emitting locations
in for TI's specifically if the location is a single range (not a list).
In addition, the ExplicitLocals pass which removes the ARGUMENT pseudo instructions did
not update the associated DBG_VALUEs, and couldn't even find these values since the code
assumed such instructions are adjacent, which is not the case here.
Also fixed asm printing of TIs needed by a test.
Differential Revision: https://reviews.llvm.org/D94140
More information about the All-commits
mailing list