diff options
author | Tatyana Krasnukha <tatyana@synopsys.com> | 2018-06-26 13:06:54 +0000 |
---|---|---|
committer | Tatyana Krasnukha <tatyana@synopsys.com> | 2018-06-26 13:06:54 +0000 |
commit | 04803b3ef2cf327166a65c7f8a7804a2b93e6d2f (patch) | |
tree | 922ba904efe9087a7614414e9b93de7abd09dd26 /lldb/source/Target/StackFrame.cpp | |
parent | bbadbe016f3f1d72aa7adff1a8863c4128fc39ca (diff) | |
download | bcm5719-llvm-04803b3ef2cf327166a65c7f8a7804a2b93e6d2f.tar.gz bcm5719-llvm-04803b3ef2cf327166a65c7f8a7804a2b93e6d2f.zip |
Change AddressClass type from 'enum' to 'enum class'.
If we have a function with signature f(addr_t, AddressClass), it is easy to muddle up the order of arguments without any warnings from compiler. 'enum class' prevents passing integer in place of AddressClass and vice versa.
llvm-svn: 335599
Diffstat (limited to 'lldb/source/Target/StackFrame.cpp')
-rw-r--r-- | lldb/source/Target/StackFrame.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Target/StackFrame.cpp b/lldb/source/Target/StackFrame.cpp index d6fafffbee0..2b9260f95f3 100644 --- a/lldb/source/Target/StackFrame.cpp +++ b/lldb/source/Target/StackFrame.cpp @@ -194,7 +194,7 @@ const Address &StackFrame::GetFrameCodeAddress() { const bool allow_section_end = true; if (m_frame_code_addr.SetOpcodeLoadAddress( m_frame_code_addr.GetOffset(), target_sp.get(), - eAddressClassCode, allow_section_end)) { + AddressClass::eCode, allow_section_end)) { ModuleSP module_sp(m_frame_code_addr.GetModule()); if (module_sp) { m_sc.module_sp = module_sp; |