This patch adds support for passing an OFFSET to -debug-line.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Seems good
test/tools/llvm-dwarfdump/X86/debug_line_offset.test | ||
---|---|---|
1–11 | I'd probably skip this test case? Or is there something interesting about the zero case? |
Comment Actions
Without having checked out API yet — this is still traversing over all CUs to find the one with the entry. This could be slow for something like clang.dSYM. Is there a way to find the one CU containing the entry quicker? If not, this LGTM.
Comment Actions
Except for the address byte size (for which other parts of the code use the hack below), we only need the offset.
uint8_t savedAddressByteSize = 0; // FIXME: This seems sketchy. for (const auto &CU : compile_units()) { savedAddressByteSize = CU->getAddressByteSize(); break; }
But that leaves us with the same issues as mentioned in D38237: we run into trouble when passing an invalid offset.
I'd probably skip this test case? Or is there something interesting about the zero case?