Skip to content

Conversation

@vadorovsky
Copy link
Member

@vadorovsky vadorovsky commented Sep 9, 2024

Add the DiagnosticHandler struct which implements LLVMDiagnosticHandler, so only that struct and not the whole Linker is passed to LLVMContextSetDiagnosticHandler.

This is going to make writing a safe wrapper for Context easier.


Depends on #223


This change is Reviewable

@vadorovsky vadorovsky mentioned this pull request Sep 9, 2024
Copy link
Member

@tamird tamird left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last commit LGTM.

Reviewed 1 of 1 files at r1, 4 of 4 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @vadorovsky)

Add the `DiagnosticHandler` struct which implements `LLVMDiagnosticHandler`,
so only that struct and not the whole `Linker` is passed to
`LLVMContextSetDiagnosticHandler`.

This is going to make writing a safe wrapper for `Context` easier.
@vadorovsky vadorovsky merged commit 5a46e29 into aya-rs:main Dec 1, 2024
10 of 11 checks passed
@vadorovsky vadorovsky deleted the diagnostic-handler branch December 1, 2024 18:26
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