-
Notifications
You must be signed in to change notification settings - Fork 820
DWARF: high_pc computation #2595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dschuff
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we actually have any examples of DW_AT_high_pc [DW_FORM_addr] (i.e. the absolute form) in our test cases?
| 0x00000082: DW_TAG_subprogram [10] * | ||
| DW_AT_low_pc [DW_FORM_addr] (0x0000000000000006) | ||
| DW_AT_high_pc [DW_FORM_data4] (0x00000397) | ||
| DW_AT_high_pc [DW_FORM_data4] (0x00000383) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this means that Binaryen shrank the function? Is that expected for this test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it shrinks it a little even without running optimizations, due to LEBs being compressed (which clang doesn't do in all places). I verified that size is correct.
|
We don't seem to have the absolute addr variant - perhaps llvm never emits it? (It does seem less efficient, so seems reasonable it wouldn't. |
Update high_pc values. These are interesting as they may be a relative offset compared to the low_pc. For functions we already had both a start and an end. Add such tracking for instructions as well.
Update
high_pcvalues. These are interesting as theymay be a relative offset compared to the
low_pc.For functions we already had both a start and an end. Add
such tracking for instructions as well.
This PR depends on #2594 (testcase updates).