<div dir="ltr">No, it's not deprecated. Token types were recently added in August. It seems more likely that you are compiling with old LLVM headers.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 29, 2016 at 8:50 AM, Shehbaz Jaffer via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am trying to process the typeID from a type as follows:<br>
<br>
Type *T;<br>
if(T->isTokenTy()){<br>
   std::cout << "Token Type";<br>
}<br>
<br>
/home/shehbaz/courses/ece1781/project/fslice/plugin/FSlice.cpp:147:14:<br>
error: ‘class llvm::Type’ has no member named ‘isTokenTy’<br>
   else if(T->isTokenTy())<br>
              ^<br>
<br>
I am successfully able to do this for all other 20-25 types mentioned here:<br>
<br>
<a href="http://llvm.org/docs/doxygen/html/classllvm_1_1Type.html#a5e9e1c0dd93557be1b4ad72860f3cbda" rel="noreferrer" target="_blank">http://llvm.org/docs/doxygen/html/classllvm_1_1Type.html#a5e9e1c0dd93557be1b4ad72860f3cbda</a><br>
<br>
Also, I noticed that for type int32, When I do getTypeID(), I get<br>
return value 10. However, when I check the enum of Type IDs, I see<br>
that 10 corresponds to tokens and not integers. enum value 11<br>
corresponds to integers :<br>
<a href="http://llvm.org/docs/doxygen/html/classllvm_1_1Type.html#a5e9e1c0dd93557be1b4ad72860f3cbda" rel="noreferrer" target="_blank">http://llvm.org/docs/doxygen/html/classllvm_1_1Type.html#a5e9e1c0dd93557be1b4ad72860f3cbda</a><br>
<br>
Please let me know if this is a bug, or I am misunderstanding things.<br>
<br>
Thank you, Best Regards,<br>
Shehbaz<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Shehbaz Jaffer<br>
First Year Graduate Student<br>
Sir Edward S Rogers Sr Department of Electrical and Computer Engineering<br>
University of Toronto<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</font></span></blockquote></div><br></div>