DWARFASTParserClang: Unify compilation unit language handling
authorPavel Labath <pavel@labath.sk>
Wed, 29 May 2019 09:32:59 +0000 (09:32 +0000)
committerPavel Labath <pavel@labath.sk>
Wed, 29 May 2019 09:32:59 +0000 (09:32 +0000)
commitd2042d3dd770ec593f0bf27a6fabe976d3fab804
tree7089091935c7562f3a72e4f5cbc3abce648541cd
parent78cfe1e6feecebeeb7928cb1ffa1e2a64f5ed976
DWARFASTParserClang: Unify compilation unit language handling

Summary:
The function was not being consistent in how it retrieved the language
of the current compile unit. Sometimes it did so from the lldb CU
object, and sometimes from the DWARF die. This patch unifies the
handling on the latter. The reason for choosing the DWARF method is
because I'd eventually like to stop creating lldb CUs for dwarf type
units (and so this code needs to would need to work without them).

Reviewers: clayborg, JDevlieghere, aprantl

Subscribers: jdoerfert, lldb-commits

Differential Revision: https://reviews.llvm.org/D62481

llvm-svn: 361939
lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp