This patch adds a helper function DumpStrSection to simplify codes.
Besides, nonprintable chars in debug_str and debug_str.dwo sections
are printed as escaped chars.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
After this patch, the dumpers of debug_str, debug_str.dwo and debug_line_str sections are exactly the same one. Can we merge tests into a single file?
Comment Actions
I would suggest merging debug-str.yaml and debug-str-dwo.yaml. The only difference is the section name. You could even show that both are dumped if in the same input file.
I think keeping .debug_line_str separate is still wise, because it uses a different switch to get dumped. I don't feel strongly about it though, so am happy if others think it should be merged into a single test. I don't have an answer about what to do about the duplicate coverage of the escaping stuff.
llvm/test/tools/llvm-dwarfdump/debug-str.yaml | ||
---|---|---|
1 | My same comments apply here as in D86916. |
My same comments apply here as in D86916.