shims.c raw
1 #include "llvm-c/DebugInfo.h"
2
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6
7 LLVMMetadataRef MoxieCreateCompileUnit(
8 LLVMDIBuilderRef builder,
9 LLVMDWARFSourceLanguage lang,
10 LLVMMetadataRef fileRef,
11 const char *producer, size_t producerLen,
12 LLVMBool isOptimized,
13 unsigned runtimeVer,
14 const char *sysroot, size_t sysrootLen,
15 const char *sdk, size_t sdkLen)
16 {
17 return LLVMDIBuilderCreateCompileUnit(
18 builder, lang, fileRef,
19 producer, producerLen,
20 isOptimized,
21 "", 0, /* flags */
22 runtimeVer,
23 "", 0, /* splitName */
24 LLVMDWARFEmissionFull,
25 0, /* DWOId */
26 1, /* splitDebugInlining */
27 0, /* debugInfoForProfiling */
28 sysroot, sysrootLen,
29 sdk, sdkLen);
30 }
31
32 LLVMMetadataRef MoxieCreateStructType(
33 LLVMDIBuilderRef builder,
34 LLVMMetadataRef scope,
35 const char *name, size_t nameLen,
36 LLVMMetadataRef file,
37 unsigned line,
38 uint64_t sizeInBits,
39 uint32_t alignInBits,
40 LLVMDIFlags flags,
41 LLVMMetadataRef derivedFrom,
42 LLVMMetadataRef *elements, unsigned numElements,
43 LLVMMetadataRef vTableHolder,
44 const char *uniqueID, size_t uniqueIDLen)
45 {
46 return LLVMDIBuilderCreateStructType(
47 builder, scope,
48 name, nameLen,
49 file, line,
50 sizeInBits, alignInBits, flags,
51 derivedFrom,
52 elements, numElements,
53 0, /* runtimeLang */
54 vTableHolder,
55 uniqueID, uniqueIDLen);
56 }
57
58 #ifdef __cplusplus
59 }
60 #endif
61