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.
Is your feature request related to a problem? Please describe.
I have not found a way to get a
GlobalValuefrom aPointerValuewithout usingunsafe { 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 aHashMapfrom allGlobalValues to the correspondingPointerValues.