mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 04:38:16 +00:00
Update to LLVM 20.1.0
This commit is contained in:
+9
-1
@@ -14,7 +14,7 @@
|
||||
#ifndef LLVM_C_ERROR_H
|
||||
#define LLVM_C_ERROR_H
|
||||
|
||||
#include "ExternC.h"
|
||||
#include "llvm-c/ExternC.h"
|
||||
|
||||
LLVM_C_EXTERN_C_BEGIN
|
||||
|
||||
@@ -51,6 +51,14 @@ LLVMErrorTypeId LLVMGetErrorTypeId(LLVMErrorRef Err);
|
||||
*/
|
||||
void LLVMConsumeError(LLVMErrorRef Err);
|
||||
|
||||
/**
|
||||
* Report a fatal error if Err is a failure value.
|
||||
*
|
||||
* This function can be used to wrap calls to fallible functions ONLY when it is
|
||||
* known that the Error will always be a success value.
|
||||
*/
|
||||
void LLVMCantFail(LLVMErrorRef 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.
|
||||
|
||||
Reference in New Issue
Block a user