Class LLVMError


  • public class LLVMError
    extends java.lang.Object
    • Method Detail

      • LLVMGetErrorTypeId

        public static long LLVMGetErrorTypeId​(long Err)
        Returns the type id for the given error instance, which must be a failure value (i.e. non-null).
      • LLVMConsumeError

        public static void LLVMConsumeError​(long Err)
        Dispose of the given error without handling it.

        This operation consumes the error, and the given LLVMErrorRef value is not usable once this call returns. Note: This method only needs to be called if the error is not being passed to some other consuming operation, e.g. GetErrorMessage.

      • nLLVMGetErrorMessage

        public static long nLLVMGetErrorMessage​(long Err)
        Unsafe version of: GetErrorMessage
      • LLVMGetErrorMessage

        @Nullable
        public static java.nio.ByteBuffer LLVMGetErrorMessage​(long Err)
        Returns the given string's error message.

        This operation consumes the error, and the given LLVMErrorRef value is not usable once this call returns. The caller is responsible for disposing of the string by calling DisposeErrorMessage.

      • nLLVMDisposeErrorMessage

        public static void nLLVMDisposeErrorMessage​(long ErrMsg)
        Unsafe version of: DisposeErrorMessage
      • LLVMDisposeErrorMessage

        public static void LLVMDisposeErrorMessage​(java.nio.ByteBuffer ErrMsg)
        Dispose of the given error message.
      • LLVMGetStringErrorTypeId

        public static long LLVMGetStringErrorTypeId()
        Returns the type id for llvm StringError.