pub fn get_value_name(val: &ValueRef) -> Option<String>Expand description
Obtain the string name of a value.
§Details
Retrieves the name of the LLVM value, if it has one.
This function wraps the LLVMGetValueName2 function from the LLVM core library. It returns the name of the
value represented by ValueRef as a String, if the value has a name. In LLVM IR, named values typically include
functions, global variables, and named instructions. If the value does not have a name, the function returns None.
§Returns
Returns an Option<String>:
Some(String)containing the name of the value if it has one.Noneif the value does not have a name.