This patch makes the debug_ranges section optional. When we specify an
empty debug_ranges section, yaml2obj only emits the section header.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/ObjectYAML/MachO/DWARF-debug_ranges.yaml | ||
---|---|---|
288 | This test case doesn't feel like it really belongs as part of this patch. It should be its own patch, since it isn't to do with writing an empty .debug_ranges section, right? | |
292 | Similar comment to D87261 - it might be worth adding a check that the DWARF tag doesn't appear in this case. |
Address review comments.
Thanks for reviewing!
llvm/test/ObjectYAML/MachO/DWARF-debug_ranges.yaml | ||
---|---|---|
288 | Yes, it doesn't belong to this patch. I added it because I touched the parser in dwarf2yaml.cpp. When the parser fails the content in the DWARF tag should remain empty. I will add it in a follow-up patch. |
Similar comment to D87261 - it might be worth adding a check that the DWARF tag doesn't appear in this case.