| 699 | } |
| 700 | |
| 701 | FunctionPtr Module::findUniqueFunction ( const string & mangledName ) const { |
| 702 | auto it = functionsByName.find(hash64z(mangledName.c_str())); |
| 703 | if ( !it ) return nullptr; |
| 704 | if ( it->second.size()!=1 ) return nullptr; |
| 705 | return it->second[0]; |
| 706 | } |
| 707 | |
| 708 | StructurePtr Module::findStructureByMangledNameHash ( uint64_t hash ) const { |
| 709 | return structures.find(hash); |
no test coverage detected