<div dir="ltr"><div><div><div>Hi,<br><br></div>isDeclaration() now belongs to the GlobalValue class. Since Function is a subclass of GlobalValue, you can use this function as usual.<br><br></div>Regards,<br></div>Victor.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-11 15:18 GMT-03:00 Hui Zhang <span dir="ltr"><<a href="mailto:wayne.huizhang@gmail.com" target="_blank">wayne.huizhang@gmail.com</a>></span>:<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">Hello, <br><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:large">I found a function call Function::isDeclaration() in llvm 2.5 (I know that's ancient...), which is useful to me, but I can't find it in the later version 3.3, nor the latest 3.7.....Therefore, is there an alternative way to check whether the function is just a declaration or a definition ?<br><br><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:large">PS:  I read the source code of llvm 2.5, and found isDeclaration is simply to check if the private member "basicblocks" in a function is empty, but since it's private, I can't call it outside the class...<br><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:large">Thanks<span class="HOEnZb"><font color="#888888"><br clear="all"></font></span></div><span class="HOEnZb"><font color="#888888"><br>-- <br><div>Best regards<br><br><br>Hui Zhang<br></div>
</font></span></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>