<div dir="ltr">Up,<div>Please, I need help to deal with this.</div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div style="font-family:arial;font-size:small"><div dir="ltr"><div> ---</div><div>| J. Charles</div>

<div><br></div><div><br></div></div></div></div></div>
<br><br><div class="gmail_quote">2014-06-21 19:35 GMT+02:00 J. Charles N. M. <span dir="ltr"><<a href="mailto:jcharles.nmbiada@gmail.com" target="_blank">jcharles.nmbiada@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Perhaps I miss fromulate my question.<div><div>I'am writting a compiler and I need to generate debug information throw MD structures provided by LLVM.</div><div>My  compiler is written in OCaml and I use Ocaml-LLVM binding API to generate LLVM IR Code. </div>


<div><br></div><div>I want to generate something like the one generated by clang with : </div><div>clang -S -g -emit-llvm -o  - with some optimisations. </div><div><br></div><div>I'am looking for the best way to generate debug informations with the LLVM-OCaml binding API.</div>


<div><br></div></div><div class="gmail_extra"><div><div dir="ltr"><div style="font-family:arial;font-size:small"><div dir="ltr"><div> ---</div><div>| J. Charles </div><div><br></div><div><br></div></div></div></div></div>



<br><br><div class="gmail_quote">2014-06-21 17:54 GMT+02:00 sathvik <span dir="ltr"><<a href="mailto:sathvikl@gmail.com" target="_blank">sathvikl@gmail.com</a>></span>:<div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Try running the executable with -debug flag, use a debug build of llvm <span><font color="#888888"><div><br></div></font></span><div><span><font color="#888888">-sathvik</font></span><div><div>
<br><br>On Saturday, June 21, 2014, J. Charles N. M. <<a href="mailto:jcharles.nmbiada@gmail.com" target="_blank">jcharles.nmbiada@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear,<div><br></div><div>I am actually using llvm ocaml binding to generate LLVM IR code.</div><div>Can some one tell me how to use the binding to generate debug informations if it's possible ?</div>



<div>

<br></div><div>
Many thanks</div><div><div><div dir="ltr"><div style="font-family:arial;font-size:small"><div dir="ltr"><div><br></div><div> ---</div><div>| J. Charles </div><div><br></div></div></div></div></div>
</div></div>
</blockquote></div></div></div>
</blockquote></div></div></div><br></div></div>
</blockquote></div><br></div></div>