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).
Details
Details
Diff Detail
Diff Detail
- Repository
- rLLDB LLDB
Event Timeline
source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp | ||
---|---|---|
297 | DWARFDIE::GetLanguage just fetches the (cached) language attribute from the parent DWARFUnit. The dwarf spec only speaks about this attribute in the context of top level DIEs. |
DWARFDIE::GetLanguage just fetches the (cached) language attribute from the parent DWARFUnit. The dwarf spec only speaks about this attribute in the context of top level DIEs.