Skip to content
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

[lld][ELF] Implement merged .debug_names section #88092

Closed
wants to merge 41 commits into from

Conversation

MaskRay
Copy link
Member

@MaskRay MaskRay commented Apr 9, 2024

No description provided.

@MaskRay MaskRay force-pushed the lld-debug-names branch 12 times, most recently from ef4ffb2 to 4ad3c21 Compare April 9, 2024 20:24
Copy link

github-actions bot commented Apr 9, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

@MaskRay MaskRay force-pushed the lld-debug-names branch 17 times, most recently from d0df4bc to 17be909 Compare April 9, 2024 21:59
@MaskRay MaskRay force-pushed the lld-debug-names branch 12 times, most recently from c25269f to 31da662 Compare April 17, 2024 03:38
Add Inputs/debug-names-[ab].s which can be easily regenerated
Update some negative tests to use Inputs/debug-names-[ab].s or apply straightforward transformation with sed
cmtice and others added 5 commits April 16, 2024 23:04
- Update comment about CompUnits in OutputChunk.
- Replace two uses of 'seq' in for-loops.
- Replace use of memcpy with llvm::copy.
Fix typo, add 'const', replace one use of 'seq'/
- Keep type unit counts in output header at zero, regardless of input, to
avoid crashing LLD, since we're not actually handling type units yet.
- Move the type units warning to the point where we can check the input
counts.
- Add a type units test (that LLD doesn't crash and outputs the warning).
Remove tools/generate-content.py.
We will use a generic tool intended for llvm/utils: https://discourse.llvm.org/t/utility-to-generate-elaborated-assembly-ir-tests/78408
Remove tools/generate-content.py.
We will use a generic tool intended for llvm/utils: https://discourse.llvm.org/t/utility-to-generate-elaborated-assembly-ir-tests/78408
- Pulled body of loop that reads/parses IndexEntries into a
  separate function (readEntry)
- Removed unnecessary 'const' qualifiers on local vars
- Updated comment about handling type units
- Created getChunks accessor function; used it to eliminate use of
  'seq' in for-loop.
- Enhanced some error messages
- Update debug-names-bad.s test to handle udpated error messages
- Clean up the error messages in  readEntry function
- Restore 'const' qualifier to size_t vars in computeEntryPool
- Add 'const' qualifier to getChunks function.
@MaskRay MaskRay force-pushed the lld-debug-names branch 2 times, most recently from 257fb79 to 7b119cf Compare April 18, 2024 19:54
@MaskRay
Copy link
Member Author

MaskRay commented Apr 19, 2024

Everything has been merged into #86508 , which landed yesterday.

@MaskRay MaskRay closed this Apr 19, 2024
@MaskRay MaskRay deleted the lld-debug-names branch April 23, 2024 18:04
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.

None yet

4 participants