rL294231 introduced a regression -- memory consumption for llvm-objdump during disassembly of ~500MB hexagon elf file was ~1.5GiB higher after that commit.
This change restores the previous behavior -- exit the search early for FunctionNameKind::None, saving some memory allocation.