Class LLVMError

java.lang.Object
org.lwjgl.llvm.LLVMError

public class LLVMError extends Object
  • Field Details

  • Method Details

    • 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 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(ByteBuffer ErrMsg)
      Dispose of the given error message.
    • LLVMGetStringErrorTypeId

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

      public static long nLLVMCreateStringError(long ErrMsg)
      Unsafe version of: CreateStringError
    • LLVMCreateStringError

      public static long LLVMCreateStringError(ByteBuffer ErrMsg)
      Create a StringError.
      Since:
      12
    • LLVMCreateStringError

      public static long LLVMCreateStringError(CharSequence ErrMsg)
      Create a StringError.
      Since:
      12