<div dir="ltr">Have a look at the DebugInfo API.<div><br></div><div>include/llvm/DebugInfo/*</div><div><br></div><div>It requires using the C++ API instead of the C API.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 14, 2017 at 10:32 PM, Wuweijia via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_-6845140648353432267WordSection1">
<p class="MsoNormal">Hi, <u></u><u></u></p>
<p class="MsoNormal">                I create the function  A with llvm api, and make implement about function, that function A call function B, and add some write/read operation of variants to function A. and compile it to machine code, run it debug it.
<u></u><u></u></p>
<p class="MsoNormal">                And I want to debug the function A, is there any ways I can add some dwarf info (or debug info ), so that I can the check variant ‘s value is ok.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">BR<u></u><u></u></p>
<p class="MsoNormal">Owen<u></u><u></u></p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>