<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font face="Hack Nerd Font Mono">I have not tried it but maybe<br>
</font></p>
<p><font face="Hack Nerd Font Mono">`std::string
llvm::demangle(const std::string &MangledName)`</font></p>
<p><font face="Hack Nerd Font Mono">in `llvm/Demangle/Demangle.h`<br>
</font></p>
<p><font face="Hack Nerd Font Mono">is already what you want.</font></p>
<p><font face="Hack Nerd Font Mono"><br>
</font></p>
<p><font face="Hack Nerd Font Mono"></font><br>
</p>
<div class="moz-cite-prefix">On 6/24/20 2:10 PM, sangeeta chowdhary
via llvm-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJf25iohX=yZW2CYR+Hqoju=EGM1bbCXg9Xs15NUYFWyyV=BdQ@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">Hello,
I am doing some program analysis with C++ programs. I need to check if some
particular function is called in the program, for that I need the name of
the function being called in the call instruction. Since C++ mangles the
name of the function, I need a way to demangle the function name in llvm
IR. Is there any way to achieve that in llvm pass?
Regards,
Sangeeta
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
</body>
</html>