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
This commit is contained in:
@@ -419,7 +419,7 @@ addr_t SBFrame::GetPC() const {
|
||||
frame = exe_ctx.GetFramePtr();
|
||||
if (frame) {
|
||||
addr = frame->GetFrameCodeAddress().GetOpcodeLoadAddress(
|
||||
target, eAddressClassCode);
|
||||
target, AddressClass::eCode);
|
||||
} else {
|
||||
if (log)
|
||||
log->Printf("SBFrame::GetPC () => error: could not reconstruct frame "
|
||||
|
||||
Reference in New Issue
Block a user