| 1004 | } |
| 1005 | |
| 1006 | unsigned GetVirtualIndex(PClass *cls, const char *funcname) |
| 1007 | { |
| 1008 | // Look up the virtual function index in the defining class because this may have gotten overloaded in subclasses with something different than a virtual override. |
| 1009 | auto sym = dyn_cast<PFunction>(cls->FindSymbol(funcname, false)); |
| 1010 | assert(sym != nullptr); |
| 1011 | auto VIndex = sym->Variants[0].Implementation->VirtualIndex; |
| 1012 | return VIndex; |
| 1013 | } |
| 1014 | |
| 1015 | |
| 1016 | void PClass::InitializeDefaults() |
no test coverage detected