Skip to content

Add way to get a GlobalValue from a PointerValue #672

Description

@programmerjake

Is your feature request related to a problem? Please describe.

I have not found a way to get a GlobalValue from a PointerValue without using unsafe { GlobalValue::new(...) }

Describe the solution you'd like
Add some nice conversion methods, maybe also an enum that covers all LLVM types that can be a LLVMValueRef.

Describe possible drawbacks to your solution
None

Describe alternatives you've considered
Just use unsafe, or have a HashMap from all GlobalValues to the corresponding PointerValues.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions