summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/StackFrameList.cpp
diff options
context:
space:
mode:
authorTatyana Krasnukha <tatyana@synopsys.com>2018-06-26 13:06:54 +0000
committerTatyana Krasnukha <tatyana@synopsys.com>2018-06-26 13:06:54 +0000
commit04803b3ef2cf327166a65c7f8a7804a2b93e6d2f (patch)
tree922ba904efe9087a7614414e9b93de7abd09dd26 /lldb/source/Target/StackFrameList.cpp
parentbbadbe016f3f1d72aa7adff1a8863c4128fc39ca (diff)
downloadbcm5719-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/StackFrameList.cpp')
-rw-r--r--lldb/source/Target/StackFrameList.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Target/StackFrameList.cpp b/lldb/source/Target/StackFrameList.cpp
index e2e7ba76d7f..2380a91df41 100644
--- a/lldb/source/Target/StackFrameList.cpp
+++ b/lldb/source/Target/StackFrameList.cpp
@@ -324,9 +324,9 @@ void StackFrameList::GetFramesUpTo(uint32_t end_idx) {
// case resolve the address again to the correct section plus
// offset form.
addr_t load_addr = curr_frame_address.GetOpcodeLoadAddress(
- target_sp.get(), eAddressClassCode);
+ target_sp.get(), AddressClass::eCode);
curr_frame_address.SetOpcodeLoadAddress(
- load_addr - 1, target_sp.get(), eAddressClassCode);
+ load_addr - 1, target_sp.get(), AddressClass::eCode);
} else {
curr_frame_address.Slide(-1);
}
OpenPOWER on IntegriCloud