size_t SBModule::GetNumSymbols() { ModuleSP module_sp(GetSP()); if (module_sp) { Symtab *symtab = GetUnifiedSymbolTable(module_sp); if (symtab) return symtab->GetNumSymbols(); } return 0; }
size_t SBModule::GetNumSymbols () { ModuleSP module_sp (GetSP ()); if (module_sp) { ObjectFile *obj_file = module_sp->GetObjectFile(); if (obj_file) { Symtab *symtab = obj_file->GetSymtab(); if (symtab) return symtab->GetNumSymbols(); } } return 0; }