<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
With a struct that is {T* ptr; size_t length}
<div class=""><br class="">
</div>
<div class="">e.g.</div>
<div class=""><a href="https://github.com/ldc-developers/ldc/blob/master/gen/dibuilder.cpp#L531" class="">https://github.com/ldc-developers/ldc/blob/master/gen/dibuilder.cpp#L531</a></div>
<div class="">(only difference is that our dynamic arrays are length then pointer)</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 22 Feb 2018, at 12:46 pm, Peter McKinna via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Hi,
<div class=""><br class="">
</div>
<div class=""> Does anyone have any hints as to how one might generate debug info for dynamic arrays using the DIBuilder class?</div>
<div class="">In this particular case, the length of the array is in the second word of the variable. Just taking the</div>
<div class="">one dimensional case first and see if I can get that working before moving to higher dimensions.</div>
<div class=""><br class="">
</div>
<div class="">Thanks</div>
<div class=""><br class="">
</div>
</div>
_______________________________________________<br class="">
LLVM Developers mailing list<br class="">
<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>