I think Aaron added that code for when the language is not set, but he can
clarify.
Off the top of my head I guess it helps with demangling symbols. Eg you
can’t demangle symbols from a TU without knowing what the language is.
There could be other reasons though. For example each language is going
Would you mind going into a bit more detail on what sort of problems an
unknown language could cause? I'd like to understand the issue before
jumping in to fix anything. AFAIK, in the case of DWARF symbols, debug
info for unknown languages is still used, so it wouldn't be the first for
LLDB...
On Fri, Aug 17, 2018 at 1:27 PM, Dimitry Andric wrote:
> On 16 Aug 2018, at 00:51, Joerg Sonnenberger via llvm-dev
> wrote:
>> On Tue, Aug 07, 2018 at 09:49:16PM +0200, Dimitry Andric via llvm-dev wrote:
>>> This is a regression caused by https://reviews.llvm.org/rL323281:
>>>
>>> --