about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorVadim Chugunov <vadimcn@gmail.com>2013-06-14 12:23:42 -0700
committerVadim Chugunov <vadimcn@gmail.com>2013-06-17 08:41:25 -0700
commit65dd6218afe62fa36e701ceb27bd4e17ec764acc (patch)
tree30780909a53562dfbe623e4a5a00cd00ae23e505 /src/rustllvm/RustWrapper.cpp
parent62e86e044db030b2ffb7883075720360a8dccdd4 (diff)
downloadrust-65dd6218afe62fa36e701ceb27bd4e17ec764acc.tar.gz
rust-65dd6218afe62fa36e701ceb27bd4e17ec764acc.zip
Fixed remaining issues to pass debug-test/* tests.
Made debugger scripts source line insensitive.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
-rw-r--r--src/rustllvm/RustWrapper.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp
index b7a67f984f7..6537e232f8b 100644
--- a/src/rustllvm/RustWrapper.cpp
+++ b/src/rustllvm/RustWrapper.cpp
@@ -725,6 +725,17 @@ extern "C" LLVMValueRef LLVMDIBuilderCreateLocalVariable(
         unwrapDI<DIType>(Ty), AlwaysPreserve, Flags, ArgNo));
 }
 
+extern "C" LLVMValueRef LLVMDIBuilderCreateArrayType(
+    DIBuilderRef Builder,
+    uint64_t Size,  
+    uint64_t AlignInBits,  
+    LLVMValueRef Ty, 
+    LLVMValueRef Subscripts) {
+    return wrap(Builder->createArrayType(Size, AlignInBits,
+        unwrapDI<DIType>(Ty), 
+        unwrapDI<DIArray>(Subscripts)));
+}
+
 extern "C" LLVMValueRef LLVMDIBuilderCreateVectorType(
     DIBuilderRef Builder,
     uint64_t Size,