<div dir="ltr"><div><div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">T->getStructName() if T is type Type*, but it must be a StructType*<div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><a href="http://llvm.org/docs/doxygen/html/Type_8cpp_source.html#l00192" target="_blank" style="color:rgb(17,85,204)">http://llvm.org/docs/doxygen/html/Type_8cpp_source.html#l00192</a></div></div></div><br></div><div>or T->getName() if T is type StructType*<br></div><div><a href="http://llvm.org/docs/doxygen/html/classllvm_1_1StructType.html#abefbddaaaecf8d0a4eea18339fedfe94" target="_blank">http://llvm.org/docs/doxygen/html/classllvm_1_1StructType.html#abefbddaaaecf8d0a4eea18339fedfe94</a></div><div><a href="http://llvm.org/docs/doxygen/html/Type_8cpp_source.html#l00581" target="_blank">http://llvm.org/docs/doxygen/html/Type_8cpp_source.html#l00581</a><br></div><div><br></div><div>You can peek into the implementation details in the definition of setName() and see a map:<br></div></div><div><a href="http://llvm.org/docs/doxygen/html/Type_8cpp_source.html#l00437" target="_blank">http://llvm.org/docs/doxygen/html/Type_8cpp_source.html#l00437</a><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 15, 2015 at 5:59 PM, Hui Zhang <span dir="ltr"><<a href="mailto:wayne.huizhang@gmail.com" target="_blank">wayne.huizhang@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_default" style="font-family:georgia,serif;font-size:large">Does anyone has any idea of that ?<br><br>thanks<br></div><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 15, 2015 at 3:50 PM, Hui Zhang <span dir="ltr"><<a href="mailto:wayne.huizhang@gmail.com" target="_blank">wayne.huizhang@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 style="font-family:georgia,serif;font-size:large">Hello, <br><br></div><div style="font-family:georgia,serif;font-size:large">I found some source code using llvm 2.5 that has a call to Module::getTypeName(Type*), which I can't find it anymore in llvm newer than 3.3, so how can I get the name of a type(e.g a user-defined structure) if we have Type* of that ?<br><br></div><div style="font-family:georgia,serif;font-size:large">Besides, I checked that old llvm maintains a TypeSymbolTable that enabled type name look-up, so what's the replacement and mechanism of it in the newer llvm now ?<br><br></div><div style="font-family:georgia,serif;font-size:large">thanks<span><font color="#888888"><br clear="all"></font></span></div><span><font color="#888888"><br>-- <br><div>Best regards<br><br><br>Hui Zhang<br></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div>Best regards<br><br><br>Hui Zhang<br></div>
</div></div></div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">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/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>