<div dir="ltr">friendly ping</div><div class="gmail_extra"><br><div class="gmail_quote">2016-12-30 19:38 GMT+01:00 Piotr Padlewski <span dir="ltr"><<a href="mailto:piotr.padlewski@gmail.com" target="_blank">piotr.padlewski@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">Hi,<div>I would like to check if there is inline virtual function that was not emitted.</div><div><br></div><div>I tried to do something like this based on CodeGenModule::<wbr>GetOrCreateLLVMFunction:</div><div><br></div><div><div>      StringRef Name = CGM.getMangledName(VFunction);</div><div>      auto *Entry = CGM.GetGlobalValue(Name);</div><div><br></div><div>      // If function doesn't exist or doesn't have a definition.</div><div>      if (!Entry || Entry->isDeclaration())</div><div>        return true;</div></div><div><br></div><div>But Entry->isDeclaration() returns True for functions that I would expect to be emited.</div><div>What is the proper way of checking that?</div><div><br></div><div>Thanks for help!</div><span class="HOEnZb"><font color="#888888"><div>Piotr</div></font></span><div><br></div><div><br></div><div>PS:</div><div>here is the patch that doesn't work, to get wider scope.</div><div><a href="https://reviews.llvm.org/D28178" target="_blank">https://reviews.llvm.org/<wbr>D28178</a><br></div></div>
</blockquote></div><br></div>