19
19
#ifndef LLVM_C_BITREADER_H
20
20
#define LLVM_C_BITREADER_H
21
21
22
- #include " llvm-c/Visibility.h"
23
22
#include " llvm-c/ExternC.h"
24
23
#include " llvm-c/Types.h"
24
+ #include " llvm-c/Visibility.h"
25
25
26
26
LLVM_C_EXTERN_C_BEGIN
27
27
@@ -37,30 +37,33 @@ LLVM_C_EXTERN_C_BEGIN
37
37
Optionally returns a human-readable error message via OutMessage.
38
38
39
39
This is deprecated. Use LLVMParseBitcode2. */
40
- LLVM_C_ABI LLVMBool LLVMParseBitcode (LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule,
41
- char **OutMessage);
40
+ LLVM_C_ABI LLVMBool LLVMParseBitcode (LLVMMemoryBufferRef MemBuf,
41
+ LLVMModuleRef *OutModule,
42
+ char **OutMessage);
42
43
43
44
/* Builds a module from the bitcode in the specified memory buffer, returning a
44
45
reference to the module via the OutModule parameter. Returns 0 on success. */
45
46
LLVM_C_ABI LLVMBool LLVMParseBitcode2 (LLVMMemoryBufferRef MemBuf,
46
- LLVMModuleRef *OutModule);
47
+ LLVMModuleRef *OutModule);
47
48
48
49
/* This is deprecated. Use LLVMParseBitcodeInContext2. */
49
50
LLVM_C_ABI LLVMBool LLVMParseBitcodeInContext (LLVMContextRef ContextRef,
50
- LLVMMemoryBufferRef MemBuf,
51
- LLVMModuleRef *OutModule, char **OutMessage);
51
+ LLVMMemoryBufferRef MemBuf,
52
+ LLVMModuleRef *OutModule,
53
+ char **OutMessage);
52
54
53
55
LLVM_C_ABI LLVMBool LLVMParseBitcodeInContext2 (LLVMContextRef ContextRef,
54
- LLVMMemoryBufferRef MemBuf,
55
- LLVMModuleRef *OutModule);
56
+ LLVMMemoryBufferRef MemBuf,
57
+ LLVMModuleRef *OutModule);
56
58
57
59
/* * Reads a module from the specified path, returning via the OutMP parameter
58
60
a module provider which performs lazy deserialization. Returns 0 on success.
59
61
Optionally returns a human-readable error message via OutMessage.
60
62
This is deprecated. Use LLVMGetBitcodeModuleInContext2. */
61
63
LLVM_C_ABI LLVMBool LLVMGetBitcodeModuleInContext (LLVMContextRef ContextRef,
62
- LLVMMemoryBufferRef MemBuf,
63
- LLVMModuleRef *OutM, char **OutMessage);
64
+ LLVMMemoryBufferRef MemBuf,
65
+ LLVMModuleRef *OutM,
66
+ char **OutMessage);
64
67
65
68
/* * Reads a module from the given memory buffer, returning via the OutMP
66
69
* parameter a module provider which performs lazy deserialization.
@@ -70,14 +73,16 @@ LLVM_C_ABI LLVMBool LLVMGetBitcodeModuleInContext(LLVMContextRef ContextRef,
70
73
* Takes ownership of \p MemBuf if (and only if) the module was read
71
74
* successfully. */
72
75
LLVM_C_ABI LLVMBool LLVMGetBitcodeModuleInContext2 (LLVMContextRef ContextRef,
73
- LLVMMemoryBufferRef MemBuf,
74
- LLVMModuleRef *OutM);
76
+ LLVMMemoryBufferRef MemBuf,
77
+ LLVMModuleRef *OutM);
75
78
76
79
/* This is deprecated. Use LLVMGetBitcodeModule2. */
77
- LLVM_C_ABI LLVMBool LLVMGetBitcodeModule (LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM,
78
- char **OutMessage);
80
+ LLVM_C_ABI LLVMBool LLVMGetBitcodeModule (LLVMMemoryBufferRef MemBuf,
81
+ LLVMModuleRef *OutM,
82
+ char **OutMessage);
79
83
80
- LLVM_C_ABI LLVMBool LLVMGetBitcodeModule2 (LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM);
84
+ LLVM_C_ABI LLVMBool LLVMGetBitcodeModule2 (LLVMMemoryBufferRef MemBuf,
85
+ LLVMModuleRef *OutM);
81
86
82
87
/* *
83
88
* @}
0 commit comments