<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::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><div>Piotr</div><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">https://reviews.llvm.org/D28178</a><br></div></div>