[lldb] Don't repeat function lookups that only differ in language (#232926)

Currently Module::LookupInfo::MakeLookupInfos() creates one lookup for
each language plugin when no language is given, and each lookup
searches every module. Even languages that don't parse function names,
like Fortran and Objective-C++, do this repetetive work.

This patch skips a lookup of full names that only differs from an
earlier one in its language. Only the DWARF index uses the language of
a lookup, and only to match names that aren't full names, so the
skipped lookup would find the same functions again.

Assisted-by: Claude

Depends on https://github.com/llvm/llvm-project/pull/232925

GitOrigin-RevId: e8252ef6f2aad4e894450490600707d695e96d65
3 files changed