Details
Diff Detail
Event Timeline
lib/DebugInfo/DWARF/DWARFVerifier.cpp | ||
---|---|---|
134 | General feedback: probably want to consistently use lowercase 'warning' and 'error' (or better yet/as well, maybe refactor error/warning handling to use a single function for printing warnings and errors). Also there are two spaces between ".debug_abbrev" and "and" - should only be one. Is there an existing warning about there being no debug_info section? And about debug_info not having a valid debug_abbrev? Then maybe this warning about missing debug_abbrev isn't necessary? | |
test/tools/llvm-dwarfdump/X86/verify_debug_abbrev.s | ||
2 | This seems like a really big/long test - what's in basic.c? Does it need to be that complicated? (could it be simpler/shorter/etc?) | |
7–8 | Maybe worth mentioning the DIE tag? Or dumping the whole abbrev after/with the diagnostic? |
Addressed reviewer's comments.
lib/DebugInfo/DWARF/DWARFVerifier.cpp | ||
---|---|---|
134 | Partially fixed. I removed the warning from .debug_abbrev. Currently I'm printing a warning for .debug_info section as well, but I plan I agree with having a function generating the errors/warnings. I could do this in another patch. |
test/tools/llvm-dwarfdump/X86/verify_debug_abbrev.s | ||
---|---|---|
7 | Should check that the DIE gets dumped too |
General feedback: probably want to consistently use lowercase 'warning' and 'error' (or better yet/as well, maybe refactor error/warning handling to use a single function for printing warnings and errors).
Also there are two spaces between ".debug_abbrev" and "and" - should only be one.
Is there an existing warning about there being no debug_info section? And about debug_info not having a valid debug_abbrev? Then maybe this warning about missing debug_abbrev isn't necessary?