Dear, I am actually using llvm ocaml binding to generate LLVM IR code. Can some one tell me how to use the binding to generate debug informations if it's possible ? Many thanks --- | J. Charles -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140621/50464cda/attachment.html>
Try running the executable with -debug flag, use a debug build of llvm -sathvik On Saturday, June 21, 2014, J. Charles N. M. <jcharles.nmbiada at gmail.com> wrote:> Dear, > > I am actually using llvm ocaml binding to generate LLVM IR code. > Can some one tell me how to use the binding to generate debug informations > if it's possible ? > > Many thanks > > --- > | J. Charles > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140621/61ad7481/attachment.html>
Perhaps I miss fromulate my question. I'am writting a compiler and I need to generate debug information throw MD structures provided by LLVM. My compiler is written in OCaml and I use Ocaml-LLVM binding API to generate LLVM IR Code. I want to generate something like the one generated by clang with : clang -S -g -emit-llvm -o - with some optimisations. I'am looking for the best way to generate debug informations with the LLVM-OCaml binding API. --- | J. Charles 2014-06-21 17:54 GMT+02:00 sathvik <sathvikl at gmail.com>:> Try running the executable with -debug flag, use a debug build of llvm > > -sathvik > > > On Saturday, June 21, 2014, J. Charles N. M. <jcharles.nmbiada at gmail.com> > wrote: > >> Dear, >> >> I am actually using llvm ocaml binding to generate LLVM IR code. >> Can some one tell me how to use the binding to generate debug >> informations if it's possible ? >> >> Many thanks >> >> --- >> | J. Charles >> >>-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140621/0f99d2c8/attachment.html>