]> granicus.if.org Git - llvm/commitdiff
Introduce LLVMDIBuilderRef
authorAmaury Sechet <deadalnix@gmail.com>
Thu, 20 Apr 2017 14:22:47 +0000 (14:22 +0000)
committerAmaury Sechet <deadalnix@gmail.com>
Thu, 20 Apr 2017 14:22:47 +0000 (14:22 +0000)
Summary:
This patch adds a definition of `LLVMDIBuilderRef` that represents an `llvm::DIBuilder`.

Authored by Harlan Haskins

Reviewers: deadalnix, aprantl, probinson, dblaikie, echristo, whitequark

Reviewed By: deadalnix, whitequark

Subscribers: CodaFi, loladiro

Differential Revision: https://reviews.llvm.org/D32122

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300843 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm-c/Types.h
include/llvm/IR/DIBuilder.h

index 13fb36ec86ea1f21e784e0a13ec53540000b88de..d63ea4de933dea687156c677c3390ca95189bc66 100644 (file)
@@ -96,6 +96,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
index 69bd5c847a8d06e051ac840fc03201bfdd9b0d42..a4b2a02d505038ec759a6bda5e7006f8f4dc8988 100644 (file)
@@ -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