LLVM.Value.GetName C# (CSharp) Method

GetName() public static method

public static GetName ( LLVMValueRef value ) : string
value LLVMValueRef
return string
        public static string GetName(LLVMValueRef* value)
        {
            if(value == null)
                throw new ArgumentNullException("value");

            IntPtr name = Native.GetValueName(value);
            if(name == null)
                return null;

            return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(name);
        }

Usage Example

Example #1
0
 public Function(LLVMValueRef *handle)
     : this(Value.GetName(handle), handle)
 {
 }
All Usage Examples Of LLVM.Value::GetName