about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@gmail>2013-09-11 16:37:43 +0200
committerMichael Woerister <michaelwoerister@gmail>2013-09-15 12:28:25 +0200
commitf85da506a88265f7e541ef548c644527f7510945 (patch)
treecd59766b28a7400689e2f92a3ea8711a52bc68a7 /src/rustllvm/RustWrapper.cpp
parent206cc59f46f6e7b4f91ebe8fdfe4dae83a1fa703 (diff)
downloadrust-f85da506a88265f7e541ef548c644527f7510945.tar.gz
rust-f85da506a88265f7e541ef548c644527f7510945.zip
debuginfo: Support for recursive types.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
-rw-r--r--src/rustllvm/RustWrapper.cpp30
1 files changed, 30 insertions, 0 deletions
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<DIFile>(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<DIDescriptor>(Scope),
+//         unwrapDI<DIFile>(File),
+//         Line,
+//         RuntimeLang,
+//         SizeInBits,
+//         AlignInBits
+//     ));
+// }
+
+extern "C" void LLVMDICompositeTypeSetTypeArray(
+    LLVMValueRef CompositeType,
+    LLVMValueRef TypeArray)
+{
+    unwrapDI<DICompositeType>(CompositeType).setTypeArray(unwrapDI<DIArray>(TypeArray));
+}