Move UnwindTable from ObjectFile to Module

Summary:
This is a preparatory step to enable adding extra unwind strategies by
symbol file plugins. This has been discussed on the lldb-dev mailing
list: <http://lists.llvm.org/pipermail/lldb-dev/2019-February/014703.html>.

Reviewers: jasonmolenda, clayborg, espindola

Subscribers: lemo, emaste, lldb-commits, arichardson

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

llvm-svn: 354033
This commit is contained in:
Pavel Labath
2019-02-14 14:40:10 +00:00
parent c374a800e7
commit 66d88326ab
8 changed files with 50 additions and 52 deletions

View File

@@ -2862,8 +2862,8 @@ Symtab *ObjectFileELF::GetSymtab() {
}
}
DWARFCallFrameInfo *eh_frame = GetUnwindTable().GetEHFrameInfo();
if (eh_frame) {
if (DWARFCallFrameInfo *eh_frame =
GetModule()->GetUnwindTable().GetEHFrameInfo()) {
if (m_symtab_up == nullptr)
m_symtab_up.reset(new Symtab(this));
ParseUnwindSymbols(m_symtab_up.get(), eh_frame);