Skip to content

Line table fix hack2 #6735

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

rastogishubham
Copy link

@rastogishubham rastogishubham commented Apr 27, 2023

Hack to see why the line table fix in https://github.com/apple/llvm-project/pull/6718/files is causing a mild increase in cas size

When using the option -mllvm -cas-friendly-debug-info, we expect the
line table to be emitted in such a way, that it is split-able in the CAS
by every function's line table contribution. This was achieved by
emitting a DW_LNE_end_sequence at the end of the function's contribution
to the line table. This however, had some issues.

Namely, there was an extra DW_LNE_end_sequence being emitted at the end
of the line table.

There was also the case where because of DW_LNE_end_sequence denoting
a reset of the state machine, unnecessary DW_LNS_set_file directives
were being emitted which was preventing deduplication.

These issues have been addressed along with changes to associated tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant