Details
Diff Detail
Event Timeline
llvm/lib/DebugInfo/DWARF/DWARFDebugMacro.cpp | ||
---|---|---|
31–32 | This is a bit redundant and possibly confusing - the format is given by the flags. Perhaps the flags should be decomposed into their semantic values and rendered that way (& render the raw flag value if it contains other bits set that aren't described by the spec)? Though I guess it's not entirely inconsistent with the way we print the format and the length in other sections, when the format is sort of described by the length.. |
llvm/test/DebugInfo/X86/debug-macro-dwarf64.s | ||
---|---|---|
54 | Nit: no new line at EOF. |
llvm/lib/DebugInfo/DWARF/DWARFDebugMacro.cpp | ||
---|---|---|
31–32 | Sorry, but I do not fully understand what you are suggesting to change exactly. I guess that reporting Flags in some cases while omitting it in others might not be a good practice. We discussed something similar for a patch that added reporting the format and the common consensus was that it is better to print the format for both variants rather than only for DWARF64. We could decode the value of Flags in each case, but that is already done even if in a bit indirect way. We dump debug_line_offset only if the corresponding flag is set and, with this patch, we explicitly dump the format. The only remaining flag, opcode_operands_table, is not supported yet. But even if we decide to explicitly explain Flags, that should be a separate patch. | |
llvm/test/DebugInfo/X86/debug-macro-dwarf64.s | ||
54 | Thanks! Sorry. I guess it is time to tackle the settings of my VS Code. |
llvm/lib/DebugInfo/DWARF/DWARFDebugMacro.cpp | ||
---|---|---|
31–32 | Fair enough - thanks for the explanation. |
This is a bit redundant and possibly confusing - the format is given by the flags. Perhaps the flags should be decomposed into their semantic values and rendered that way (& render the raw flag value if it contains other bits set that aren't described by the spec)?
Though I guess it's not entirely inconsistent with the way we print the format and the length in other sections, when the format is sort of described by the length..