<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 9, 2014 at 4:50 AM, Isaiah Norton <span dir="ltr"><<a href="mailto:isaiah.norton@gmail.com" target="_blank">isaiah.norton@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 dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class=""><div><br></div><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 dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><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">

</blockquote></div><div>Alright, I see why it makes sense. We can pass this information through DILineInfoSpecifier. In fact, probably it makes sense to change the layout of this structure:</div><div>there would be 3 types of file/line info (None, Regular, AbsoluteFilePath). (though, probably we may make latter the default) and 3 types of function name info (None, Name, LinkageName).</div>

</div></div></div></blockquote><div> </div></div><div>Here is a proposed patch, but with more limited scope than mentioned above. Patch just adds LInkageName as a default-on option to the existing DILineInfoSpecifier structure, and makes corresponding changes in the necessary functions.</div>

<div><br></div></div></div></div></blockquote><div><br></div><div>I don't like this approach. Having two distinct flags (FunctionName and LinkageName) describing the output format of a single field is confusing.</div>
<div>The value of LinkageName is silently ignored if FunctionName is not specified. enum would be more appropriate here.</div><div><br></div><div>We would also need to test this behavior somehow. One of the option is to expose it via llvm-symbolizer tool - and make its "--functions" flag take a string value instead of a bool. I understand that it's extra work to do. I'm ok with making these changes myself, but won't be able to get to it until next week.</div>
</div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Alexey Samsonov, Mountain View, CA</div></div>
</div></div>