<div dir="ltr"><div>Hi Shankar,<br><br></div>What's the progress of moving the demangler into LLVM? On Windows, I have to use glog's demangler for now, but I just bumped into a bug in that code that fails on demangling a function name.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 4, 2014 at 8:05 AM, Shankar Easwaran <span dir="ltr"><<a href="mailto:shankare@codeaurora.org" target="_blank">shankare@codeaurora.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 4/4/2014 3:46 AM, David Chisnall wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 3 Apr 2014, at 20:49, Shankar Easwaran <<a href="mailto:shankare@codeaurora.org" target="_blank">shankare@codeaurora.org</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
b) I am not planning to write a demangler. I was planning on using abi::__cxx_demangle if there was one available and the first character in the symbol was a _.<br>
    If MSVC was defined, we would use the Undecorate API.<br>
</blockquote>
The demangler that Howard wrote for libc++abi was intended to be general and reusable.  It was rewritten eventually because it wasn't a good fit for the C++ runtime library, but it would make sense to import it into one of the LLVM libraries, as a good, general demangler is something that a lot of things (including lldb) would benefit from.<br>
</blockquote></span>
+ Chandler/Rafael<br>
<br>
I agree with this. I will try to move out the function from libc++ abi to lib/Support and see if what the reviewers would say.<br>
<br>
Makes it much easier to call the functionality instead of each tool/component having a separate implementation.<span class="im HOEnZb"><br>
<br>
<br>
Thanks<br>
<br>
Shankar Easwaran<br>
<br>
-- <br>
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation<br>
<br></span><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">- Welson<br><div><div><div><br></div></div></div></div></div>
</div>