aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/go/llvm/DIBuilderBindings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/go/llvm/DIBuilderBindings.cpp')
-rw-r--r--bindings/go/llvm/DIBuilderBindings.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/bindings/go/llvm/DIBuilderBindings.cpp b/bindings/go/llvm/DIBuilderBindings.cpp
index a7d75a3..f39198d 100644
--- a/bindings/go/llvm/DIBuilderBindings.cpp
+++ b/bindings/go/llvm/DIBuilderBindings.cpp
@@ -146,6 +146,18 @@ LLVMMetadataRef LLVMDIBuilderCreateStructType(
return wrap(CT);
}
+LLVMMetadataRef LLVMDIBuilderCreateReplaceableCompositeType(
+ LLVMDIBuilderRef Dref, unsigned Tag, const char *Name,
+ LLVMMetadataRef Scope, LLVMMetadataRef File, unsigned Line,
+ unsigned RuntimeLang, uint64_t SizeInBits, uint64_t AlignInBits,
+ unsigned Flags) {
+ DIBuilder *D = unwrap(Dref);
+ DICompositeType CT = D->createReplaceableCompositeType(
+ Tag, Name, unwrapDI<DIDescriptor>(Scope), unwrapDI<DIFile>(File), Line,
+ RuntimeLang, SizeInBits, AlignInBits, Flags);
+ return wrap(CT);
+}
+
LLVMMetadataRef
LLVMDIBuilderCreateMemberType(LLVMDIBuilderRef Dref, LLVMMetadataRef Scope,
const char *Name, LLVMMetadataRef File,