Skip to content

[BOLT][NFC] Refactor relocation printing #88180

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

Merged
merged 1 commit into from
Apr 15, 2024
Merged

Conversation

urnathan
Copy link
Contributor

@urnathan urnathan commented Apr 9, 2024

I noticed a little more refactoring could be done here.

  1. Make the arrays themselves const -- not just the strings being pointed to
  2. Move each relocation array to the case using it.
  3. Add a suitable assert, to make sure there's no out-of-bounds indexing.

@urnathan urnathan marked this pull request as ready for review April 10, 2024 11:40
@urnathan urnathan merged commit 67e733d into llvm:main Apr 15, 2024
bazuzi pushed a commit to bazuzi/llvm-project that referenced this pull request Apr 15, 2024
Some refactoring.

* Make the arrays themselves const -- not just the strings being pointed to.
* Move each relocation array to the case using it.
* Add a suitable assert, to make sure there's no out-of-bounds indexing.
aniplcc pushed a commit to aniplcc/llvm-project that referenced this pull request Apr 15, 2024
Some refactoring.

* Make the arrays themselves const -- not just the strings being pointed to.
* Move each relocation array to the case using it.
* Add a suitable assert, to make sure there's no out-of-bounds indexing.
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.

2 participants