003 File Manager
Current Path:
/usr/src/contrib/llvm-project/llvm/include/llvm-c
usr
/
src
/
contrib
/
llvm-project
/
llvm
/
include
/
llvm-c
/
📁
..
📄
Analysis.h
(2.53 KB)
📄
BitReader.h
(3.8 KB)
📄
BitWriter.h
(2.3 KB)
📄
Comdat.h
(2.63 KB)
📄
Core.h
(128.88 KB)
📄
DataTypes.h
(2.95 KB)
📄
DebugInfo.h
(53.79 KB)
📄
Disassembler.h
(4.91 KB)
📄
DisassemblerTypes.h
(7.58 KB)
📄
Error.h
(2.3 KB)
📄
ErrorHandling.h
(1.9 KB)
📄
ExecutionEngine.h
(8.25 KB)
📄
ExternC.h
(1.9 KB)
📄
IRReader.h
(1.58 KB)
📄
Initialization.h
(2.13 KB)
📄
LinkTimeOptimizer.h
(1.98 KB)
📄
Linker.h
(1.7 KB)
📄
Object.h
(9.19 KB)
📄
Orc.h
(12.93 KB)
📄
OrcBindings.h
(6.55 KB)
📄
Remarks.h
(9.41 KB)
📄
Support.h
(2.42 KB)
📄
Target.h
(11.84 KB)
📄
TargetMachine.h
(6.54 KB)
📁
Transforms
📄
Types.h
(4.54 KB)
📄
lto.h
(28.38 KB)
📄
module.modulemap
(57 B)
Editing: Error.h
/*===------- llvm-c/Error.h - llvm::Error class C Interface -------*- C -*-===*\ |* *| |* Part of the LLVM Project, under the Apache License v2.0 with LLVM *| |* Exceptions. *| |* See https://llvm.org/LICENSE.txt for license information. *| |* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *| |* *| |*===----------------------------------------------------------------------===*| |* *| |* This file defines the C interface to LLVM's Error class. *| |* *| \*===----------------------------------------------------------------------===*/ #ifndef LLVM_C_ERROR_H #define LLVM_C_ERROR_H #include "llvm-c/ExternC.h" LLVM_C_EXTERN_C_BEGIN #define LLVMErrorSuccess 0 /** * Opaque reference to an error instance. Null serves as the 'success' value. */ typedef struct LLVMOpaqueError *LLVMErrorRef; /** * Error type identifier. */ typedef const void *LLVMErrorTypeId; /** * Returns the type id for the given error instance, which must be a failure * value (i.e. non-null). */ LLVMErrorTypeId LLVMGetErrorTypeId(LLVMErrorRef 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. LLVMGetErrorMessage. */ void LLVMConsumeError(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. * The caller is responsible for disposing of the string by calling * LLVMDisposeErrorMessage. */ char *LLVMGetErrorMessage(LLVMErrorRef Err); /** * Dispose of the given error message. */ void LLVMDisposeErrorMessage(char *ErrMsg); /** * Returns the type id for llvm StringError. */ LLVMErrorTypeId LLVMGetStringErrorTypeId(void); LLVM_C_EXTERN_C_END #endif
Upload File
Create Folder