Skip to content

Add way to get a GlobalValue from a PointerValue #672

@programmerjake

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions