refactor: Unify+simplify DWARFCompileUnit ctor+Clear() into in-class initializers...
authorJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 29 Nov 2017 21:13:11 +0000 (21:13 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 29 Nov 2017 21:13:11 +0000 (21:13 +0000)
commitca9c2b290cbe12497382954003f3386baa2cdb74
treef304da45dd85ff4feea0476a228fd72c0a8a0227
parentfa51e1d1848de59c3b2ee82ff71a0dabd6ab9792
refactor: Unify+simplify DWARFCompileUnit ctor+Clear() into in-class initializers + Extract()

It has no functionality effect.

I was concerned about the worse performance of DWARFDebugInfo::Parse this way
of allocating+destroying a CU for each iteration but I see it is now used only
by DWARFDebugInfo::Dump so that is no longer a problem.

Differential revision: https://reviews.llvm.org/D40212

llvm-svn: 319359
lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.h
lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.h