[nfc] [lldb] Move LookupAddress to DWARFCompileUnit
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 19 Oct 2020 09:26:16 +0000 (11:26 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 19 Oct 2020 10:44:33 +0000 (12:44 +0200)
commit0e5248be8675db09b48680b9208b70f0e0908895
tree5b86b3d856be93a99f9f180f42e3f6b21c8e3f4e
parent0628bea5137047232f37c94b74bf26aa9b55f605
[nfc] [lldb] Move LookupAddress to DWARFCompileUnit

LookupAddress makes no sense for DWARFTypeUnit.
Also make GetNonSkeletonUnit to preserve the called type.

Differential Revision: https://reviews.llvm.org/D89646
lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.h
lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp