<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 31, 2014 at 12:47 PM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">> I'm not sure how to access those parts of LLVM from libclang. Besides, IIRC<br>
> targets are not linked into libclang. Do you have an idea?<br>
<br>
</div>The LLVM targets? You shouldn't need them. All that you need is the<br>
DataLayout. With that you should be able to use lib/IR/Mangler.<br><br></blockquote><div><br></div><div>Attaching a patch - is this what you had in mind?</div><div><br></div><div>Eli</div><div> </div></div></div></div>