diff options
| -rw-r--r-- | llvm/include/llvm-c/Types.h | 7 | ||||
| -rw-r--r-- | llvm/include/llvm/IR/DIBuilder.h | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Types.h b/llvm/include/llvm-c/Types.h index 13fb36ec86e..d63ea4de933 100644 --- a/llvm/include/llvm-c/Types.h +++ b/llvm/include/llvm-c/Types.h @@ -97,6 +97,13 @@ typedef struct LLVMOpaqueMetadata *LLVMMetadataRef; typedef struct LLVMOpaqueBuilder *LLVMBuilderRef; /** + * Represents an LLVM debug info builder. + * + * This models llvm::DIBuilder. + */ +typedef struct LLVMOpaqueDIBuilder *LLVMDIBuilderRef; + +/** * Interface used to provide a module to JIT or interpreter. * This is now just a synonym for llvm::Module, but we have to keep using the * different type to keep binary compatibility. diff --git a/llvm/include/llvm/IR/DIBuilder.h b/llvm/include/llvm/IR/DIBuilder.h index 69bd5c847a8..a4b2a02d505 100644 --- a/llvm/include/llvm/IR/DIBuilder.h +++ b/llvm/include/llvm/IR/DIBuilder.h @@ -778,6 +778,9 @@ namespace llvm { } }; + // Create wrappers for C Binding types (see CBindingWrapping.h). + DEFINE_ISA_CONVERSION_FUNCTIONS(DIBuilder, LLVMDIBuilderRef) + } // end namespace llvm #endif // LLVM_IR_DIBUILDER_H |

