From f85da506a88265f7e541ef548c644527f7510945 Mon Sep 17 00:00:00 2001 From: Michael Woerister Date: Wed, 11 Sep 2013 16:37:43 +0200 Subject: debuginfo: Support for recursive types. --- src/rustllvm/RustWrapper.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'src/rustllvm/RustWrapper.cpp') diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp index 22288a27624..9aca0705911 100644 --- a/src/rustllvm/RustWrapper.cpp +++ b/src/rustllvm/RustWrapper.cpp @@ -789,3 +789,33 @@ extern "C" LLVMValueRef LLVMDIBuilderCreateNameSpace( unwrapDI(File), LineNo)); } + +// extern "C" LLVMValueRef LLVMDIBuilderCreateForwardDecl( +// DIBuilderRef Builder, +// unsigned Tag, +// const char* Name, +// LLVMValueRef Scope, +// LLVMValueRef File, +// unsigned Line, +// unsigned RuntimeLang, +// uint64_t SizeInBits, +// uint64_t AlignInBits) +// { +// return wrap(Builder->createForwardDecl( +// Tag, +// Name, +// unwrapDI(Scope), +// unwrapDI(File), +// Line, +// RuntimeLang, +// SizeInBits, +// AlignInBits +// )); +// } + +extern "C" void LLVMDICompositeTypeSetTypeArray( + LLVMValueRef CompositeType, + LLVMValueRef TypeArray) +{ + unwrapDI(CompositeType).setTypeArray(unwrapDI(TypeArray)); +} -- cgit 1.4.1-3-g733a5