Skip to content

Commit cd1946d

Browse files
committed
Impl LLVM_STDCALL on llvm-c exports
1 parent 049fad1 commit cd1946d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1427
-1416
lines changed

lib/llvm-6.0.0.src/include/llvm-c/Analysis.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ typedef enum {
4242
/* Verifies that a module is valid, taking the specified action if not.
4343
Optionally returns a human-readable description of any invalid constructs.
4444
OutMessage must be disposed with LLVMDisposeMessage. */
45-
LLVMBool LLVMVerifyModule(LLVMModuleRef M, LLVMVerifierFailureAction Action,
45+
LLVMBool LLVM_STDCALL LLVMVerifyModule(LLVMModuleRef M, LLVMVerifierFailureAction Action,
4646
char **OutMessage);
4747

4848
/* Verifies that a single function is valid, taking the specified action. Useful
4949
for debugging. */
50-
LLVMBool LLVMVerifyFunction(LLVMValueRef Fn, LLVMVerifierFailureAction Action);
50+
LLVMBool LLVM_STDCALL LLVMVerifyFunction(LLVMValueRef Fn, LLVMVerifierFailureAction Action);
5151

5252
/* Open up a ghostview window that displays the CFG of the current function.
5353
Useful for debugging. */
54-
void LLVMViewFunctionCFG(LLVMValueRef Fn);
55-
void LLVMViewFunctionCFGOnly(LLVMValueRef Fn);
54+
void LLVM_STDCALL LLVMViewFunctionCFG(LLVMValueRef Fn);
55+
void LLVM_STDCALL LLVMViewFunctionCFGOnly(LLVMValueRef Fn);
5656

5757
/**
5858
* @}

lib/llvm-6.0.0.src/include/llvm-c/BitReader.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,42 +37,42 @@ extern "C" {
3737
Optionally returns a human-readable error message via OutMessage.
3838
3939
This is deprecated. Use LLVMParseBitcode2. */
40-
LLVMBool LLVMParseBitcode(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule,
40+
LLVMBool LLVM_STDCALL LLVMParseBitcode(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule,
4141
char **OutMessage);
4242

4343
/* Builds a module from the bitcode in the specified memory buffer, returning a
4444
reference to the module via the OutModule parameter. Returns 0 on success. */
45-
LLVMBool LLVMParseBitcode2(LLVMMemoryBufferRef MemBuf,
45+
LLVMBool LLVM_STDCALL LLVMParseBitcode2(LLVMMemoryBufferRef MemBuf,
4646
LLVMModuleRef *OutModule);
4747

4848
/* This is deprecated. Use LLVMParseBitcodeInContext2. */
49-
LLVMBool LLVMParseBitcodeInContext(LLVMContextRef ContextRef,
49+
LLVMBool LLVM_STDCALL LLVMParseBitcodeInContext(LLVMContextRef ContextRef,
5050
LLVMMemoryBufferRef MemBuf,
5151
LLVMModuleRef *OutModule, char **OutMessage);
5252

53-
LLVMBool LLVMParseBitcodeInContext2(LLVMContextRef ContextRef,
53+
LLVMBool LLVM_STDCALL LLVMParseBitcodeInContext2(LLVMContextRef ContextRef,
5454
LLVMMemoryBufferRef MemBuf,
5555
LLVMModuleRef *OutModule);
5656

5757
/** Reads a module from the specified path, returning via the OutMP parameter
5858
a module provider which performs lazy deserialization. Returns 0 on success.
5959
Optionally returns a human-readable error message via OutMessage.
6060
This is deprecated. Use LLVMGetBitcodeModuleInContext2. */
61-
LLVMBool LLVMGetBitcodeModuleInContext(LLVMContextRef ContextRef,
61+
LLVMBool LLVM_STDCALL LLVMGetBitcodeModuleInContext(LLVMContextRef ContextRef,
6262
LLVMMemoryBufferRef MemBuf,
6363
LLVMModuleRef *OutM, char **OutMessage);
6464

6565
/** Reads a module from the specified path, returning via the OutMP parameter a
6666
* module provider which performs lazy deserialization. Returns 0 on success. */
67-
LLVMBool LLVMGetBitcodeModuleInContext2(LLVMContextRef ContextRef,
67+
LLVMBool LLVM_STDCALL LLVMGetBitcodeModuleInContext2(LLVMContextRef ContextRef,
6868
LLVMMemoryBufferRef MemBuf,
6969
LLVMModuleRef *OutM);
7070

7171
/* This is deprecated. Use LLVMGetBitcodeModule2. */
72-
LLVMBool LLVMGetBitcodeModule(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM,
72+
LLVMBool LLVM_STDCALL LLVMGetBitcodeModule(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM,
7373
char **OutMessage);
7474

75-
LLVMBool LLVMGetBitcodeModule2(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM);
75+
LLVMBool LLVM_STDCALL LLVMGetBitcodeModule2(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM);
7676

7777
/**
7878
* @}

lib/llvm-6.0.0.src/include/llvm-c/BitWriter.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ extern "C" {
3535
/*===-- Operations on modules ---------------------------------------------===*/
3636

3737
/** Writes a module to the specified path. Returns 0 on success. */
38-
int LLVMWriteBitcodeToFile(LLVMModuleRef M, const char *Path);
38+
int LLVM_STDCALL LLVMWriteBitcodeToFile(LLVMModuleRef M, const char *Path);
3939

4040
/** Writes a module to an open file descriptor. Returns 0 on success. */
41-
int LLVMWriteBitcodeToFD(LLVMModuleRef M, int FD, int ShouldClose,
41+
int LLVM_STDCALL LLVMWriteBitcodeToFD(LLVMModuleRef M, int FD, int ShouldClose,
4242
int Unbuffered);
4343

4444
/** Deprecated for LLVMWriteBitcodeToFD. Writes a module to an open file
4545
descriptor. Returns 0 on success. Closes the Handle. */
46-
int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int Handle);
46+
int LLVM_STDCALL LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int Handle);
4747

4848
/** Writes a module to a new memory buffer and returns it. */
49-
LLVMMemoryBufferRef LLVMWriteBitcodeToMemoryBuffer(LLVMModuleRef M);
49+
LLVMMemoryBufferRef LLVM_STDCALL LLVMWriteBitcodeToMemoryBuffer(LLVMModuleRef M);
5050

5151
/**
5252
* @}

0 commit comments

Comments
 (0)