[Lldb-commits] [lldb] 003f2b3 - [lldb, FreeBSD] getValue => operator* for Optional migration
Fangrui Song via lldb-commits
lldb-commits at lists.llvm.org
Mon Jan 30 18:57:59 PST 2023
Author: Fangrui Song
Date: 2023-01-30T18:57:54-08:00
New Revision: 003f2b379d52832171eaa6272e3a2b1cabcd6f4e
URL: https://github.com/llvm/llvm-project/commit/003f2b379d52832171eaa6272e3a2b1cabcd6f4e
DIFF: https://github.com/llvm/llvm-project/commit/003f2b379d52832171eaa6272e3a2b1cabcd6f4e.diff
LOG: [lldb,FreeBSD] getValue => operator* for Optional migration
Added:
Modified:
lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_mips64.cpp
lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_powerpc.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_mips64.cpp b/lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_mips64.cpp
index b8db7f2f3788b..0349f13945e31 100644
--- a/lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_mips64.cpp
+++ b/lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_mips64.cpp
@@ -130,7 +130,7 @@ NativeRegisterContextFreeBSD_mips64::ReadRegister(const RegisterInfo *reg_info,
return error;
}
- RegSetKind set = opt_set.getValue();
+ RegSetKind set = *opt_set;
error = ReadRegisterSet(set);
if (error.Fail())
return error;
@@ -164,7 +164,7 @@ Status NativeRegisterContextFreeBSD_mips64::WriteRegister(
return error;
}
- RegSetKind set = opt_set.getValue();
+ RegSetKind set = *opt_set;
error = ReadRegisterSet(set);
if (error.Fail())
return error;
diff --git a/lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_powerpc.cpp b/lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_powerpc.cpp
index 7ad9e3c209dff..bdb57251f706a 100644
--- a/lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_powerpc.cpp
+++ b/lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_powerpc.cpp
@@ -181,7 +181,7 @@ NativeRegisterContextFreeBSD_powerpc::ReadRegister(const RegisterInfo *reg_info,
return error;
}
- RegSetKind set = opt_set.getValue();
+ RegSetKind set = *opt_set;
error = ReadRegisterSet(set);
if (error.Fail())
return error;
@@ -215,7 +215,7 @@ Status NativeRegisterContextFreeBSD_powerpc::WriteRegister(
return error;
}
- RegSetKind set = opt_set.getValue();
+ RegSetKind set = *opt_set;
error = ReadRegisterSet(set);
if (error.Fail())
return error;
More information about the lldb-commits
mailing list