llvm.org GIT mirror llvm / 77c58f0
Revert "Remove some of the go specific C bindings for debug info now that they've been migrated into the main C API." This reverts commits r317151 and 317152 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317154 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 3 years ago
2 changed file(s) with 29 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2626 void LLVMDIBuilderDestroy(LLVMDIBuilderRef dref) {
2727 DIBuilder *d = unwrap(dref);
2828 delete d;
29 }
30
31 void LLVMDIBuilderFinalize(LLVMDIBuilderRef dref) { unwrap(dref)->finalize(); }
32
33 LLVMMetadataRef LLVMDIBuilderCreateCompileUnit(LLVMDIBuilderRef Dref,
34 unsigned Lang, const char *File,
35 const char *Dir,
36 const char *Producer,
37 int Optimized, const char *Flags,
38 unsigned RuntimeVersion) {
39 DIBuilder *D = unwrap(Dref);
40 return wrap(D->createCompileUnit(Lang, D->createFile(File, Dir), Producer,
41 Optimized, Flags, RuntimeVersion));
42 }
43
44 LLVMMetadataRef LLVMDIBuilderCreateFile(LLVMDIBuilderRef Dref, const char *File,
45 const char *Dir) {
46 DIBuilder *D = unwrap(Dref);
47 return wrap(D->createFile(File, Dir));
2948 }
3049
3150 LLVMMetadataRef LLVMDIBuilderCreateLexicalBlock(LLVMDIBuilderRef Dref,
2929 LLVMDIBuilderRef LLVMNewDIBuilder(LLVMModuleRef m);
3030
3131 void LLVMDIBuilderDestroy(LLVMDIBuilderRef d);
32 void LLVMDIBuilderFinalize(LLVMDIBuilderRef d);
33
34 LLVMMetadataRef
35 LLVMDIBuilderCreateCompileUnit(LLVMDIBuilderRef D, unsigned Language,
36 const char *File, const char *Dir,
37 const char *Producer, int Optimized,
38 const char *Flags, unsigned RuntimeVersion);
39
40 LLVMMetadataRef LLVMDIBuilderCreateFile(LLVMDIBuilderRef D, const char *File,
41 const char *Dir);
3242
3343 LLVMMetadataRef LLVMDIBuilderCreateLexicalBlock(LLVMDIBuilderRef D,
3444 LLVMMetadataRef Scope,