summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/Mach-O
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-06-28 09:09:19 +0000
committerPavel Labath <labath@google.com>2017-06-28 09:09:19 +0000
commit3f2a08183f52ee7184a9cea405fc3aa4c125fe8c (patch)
treed6d441474ad9aadb4d25b3b88ad54bbee6cd9eab /lldb/source/Plugins/ObjectFile/Mach-O
parent2f797585b55071395b0e11cbf6aab78b780f613a (diff)
downloadbcm5719-llvm-3f2a08183f52ee7184a9cea405fc3aa4c125fe8c.tar.gz
bcm5719-llvm-3f2a08183f52ee7184a9cea405fc3aa4c125fe8c.zip
[DWARFCallFrameInfo] Add Type enum to differentiate eh/debug_frame sections
Summary: instead of using a boolean to differentiate between the two section types, use an enum to make the intent clearer. I also remove the RegisterKind argument from the constructor, as this can be deduced from the Type argument. Reviewers: clayborg, jasonmolenda Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D34681 llvm-svn: 306521
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/Mach-O')
-rw-r--r--lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
index 1a4ae1a21ae..09ee56f0c34 100644
--- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
+++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
@@ -2502,7 +2502,7 @@ size_t ObjectFileMachO::ParseSymtab() {
if (text_section_sp.get() && eh_frame_section_sp.get() &&
m_type != eTypeDebugInfo) {
DWARFCallFrameInfo eh_frame(*this, eh_frame_section_sp,
- eRegisterKindEHFrame, true);
+ DWARFCallFrameInfo::EH);
DWARFCallFrameInfo::FunctionAddressAndSizeVector functions;
eh_frame.GetFunctionAddressAndSizeVector(functions);
addr_t text_base_addr = text_section_sp->GetFileAddress();
OpenPOWER on IntegriCloud