diff options
| author | OCHyams <orlando.hyams@sony.com> | 2023-04-25 11:24:30 +0100 |
|---|---|---|
| committer | OCHyams <orlando.hyams@sony.com> | 2023-04-25 14:13:47 +0100 |
| commit | 1e6fe677f8aa98518e05218affa16e468819f5ed (patch) | |
| tree | 0e7b15122bf4563ecf46c9b7a383317c01e0bf70 /lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | |
| parent | 4b1532a46f66eb71bf80458fa67b86c618803b95 (diff) | |
| download | llvm-1e6fe677f8aa98518e05218affa16e468819f5ed.zip llvm-1e6fe677f8aa98518e05218affa16e468819f5ed.tar.gz llvm-1e6fe677f8aa98518e05218affa16e468819f5ed.tar.bz2 | |
[DebugInfo] Print empty MDTuples wrapped in MetadataAsValue inline
This improves the readability of debugging intrinsics. Instead of:
call void @llvm.dbg.value(metadata !2, ...)
!2 = !{}
We will see:
call void @llvm.dbg.value(metadata !{}, ...)
!2 = !{}
Note that we still get a numbered metadata entry for the node even if it's not
used elsewhere. This is to avoid adding more context to the print functions.
This is already legal IR - LLVM can parse and understand it - so there is no
need to update the parser.
The next patches in this stack will make such empty metadata operands more
common and semantically important.
Related to https://discourse.llvm.org/t/auto-undef-debug-uses-of-a-deleted-value
Reviewed By: StephenTozer
Differential Revision: https://reviews.llvm.org/D140900
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp')
0 files changed, 0 insertions, 0 deletions
