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

Tweaks to the DebugUtils module #91

Merged
merged 1 commit into from
Feb 11, 2022
Merged

Tweaks to the DebugUtils module #91

merged 1 commit into from
Feb 11, 2022

Conversation

robdockins
Copy link
Contributor

These changes expose a bit more information gleaned from the debug
information about types from the source program.

This changes the type of computeFunctionTypes to be a bit more accurate, I think. I don't know of any use sites for this function, so I don't know how disruptive this will be.

These changes expose a bit more information gleaned from the debug
information about types from the source program.
Copy link
Collaborator

@elliottt elliottt left a comment

Choose a reason for hiding this comment

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

I think this makes sense. Should we bump llvm-pretty hackage soon?

Comment on lines -271 to -273
Maybe [Info] {- ^ return and argument type information -}
Maybe [Maybe Info] {- ^ return and argument type information -}
computeFunctionTypes m sym =
[ maybe (BaseType "void") (valMdToInfo mdMap) <$> types
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this change mean that void is now represented as Nothing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right. I believe that is more faithful to the DWARF encoding.

@elliottt elliottt merged commit ca81abf into master Feb 11, 2022
@robdockins
Copy link
Contributor Author

I think this makes sense. Should we bump llvm-pretty hackage soon?

Perhaps? I'm not sure how much has accumulated since the last release.

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