<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 26 November 2013 14:01, Diego Novillo <span dir="ltr"><<a href="mailto:dnovillo@google.com" target="_blank">dnovillo@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im"><span style="color:rgb(34,34,34)">I need '3' to be my base for all the relative offsets I get from the</span><br>
</div>
profiler.  So, how do I find out the line number of the symbol 'foo'<br>
itself?<br></blockquote><div><br></div><div>Hi Diego,</div><div><br></div><div>In the metadata. Look for DW_TAG_subprogram:</div><div><br></div><div><div>define i32 @main() #0 {</div><div>...</div><div>}</div><div><br></div>
<div>...</div><div>!4 = metadata !{i32 786478, metadata !1, metadata !5, metadata !"main", metadata !"main", metadata !"", i32 6, metadata !6, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, i32 ()* @main, null, null, metadata !2, i32 6} ; [ DW_TAG_subprogram ] [line 6] [def] [main]</div>
</div><div><br></div><div>cheers,</div><div>--renato</div></div></div></div>