DavidSpickett created this revision. Herald added subscribers: frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, atanasyan, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, kbarton, nemanjai. Herald added a project: All. DavidSpickett requested review of this revision. Herald added subscribers: lldb-commits, pcwang-thead, MaskRay. Herald added a project: LLDB. Herald added a subscriber: JDevlieghere.
All callers have been converted to the optional version. Depends on D134540 <https://reviews.llvm.org/D134540> Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D134541 Files: lldb/include/lldb/Core/EmulateInstruction.h lldb/source/Core/EmulateInstruction.cpp lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.h lldb/source/Plugins/Instruction/ARM64/EmulateInstructionARM64.h lldb/source/Plugins/Instruction/MIPS/EmulateInstructionMIPS.h lldb/source/Plugins/Instruction/MIPS64/EmulateInstructionMIPS64.h lldb/source/Plugins/Instruction/PPC64/EmulateInstructionPPC64.h lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.h
Index: lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.h =================================================================== --- lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.h +++ lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.h @@ -76,8 +76,6 @@ bool EvaluateInstruction(uint32_t options) override; bool TestEmulation(Stream *out_stream, ArchSpec &arch, OptionValueDictionary *test_data) override; - using EmulateInstruction::GetRegisterInfo; - llvm::Optional<RegisterInfo> GetRegisterInfo(lldb::RegisterKind reg_kind, uint32_t reg_num) override; Index: lldb/source/Plugins/Instruction/PPC64/EmulateInstructionPPC64.h =================================================================== --- lldb/source/Plugins/Instruction/PPC64/EmulateInstructionPPC64.h +++ lldb/source/Plugins/Instruction/PPC64/EmulateInstructionPPC64.h @@ -61,8 +61,6 @@ return false; } - using EmulateInstruction::GetRegisterInfo; - llvm::Optional<RegisterInfo> GetRegisterInfo(lldb::RegisterKind reg_kind, uint32_t reg_num) override; Index: lldb/source/Plugins/Instruction/MIPS64/EmulateInstructionMIPS64.h =================================================================== --- lldb/source/Plugins/Instruction/MIPS64/EmulateInstructionMIPS64.h +++ lldb/source/Plugins/Instruction/MIPS64/EmulateInstructionMIPS64.h @@ -72,8 +72,6 @@ return false; } - using EmulateInstruction::GetRegisterInfo; - llvm::Optional<lldb_private::RegisterInfo> GetRegisterInfo(lldb::RegisterKind reg_kind, uint32_t reg_num) override; Index: lldb/source/Plugins/Instruction/MIPS/EmulateInstructionMIPS.h =================================================================== --- lldb/source/Plugins/Instruction/MIPS/EmulateInstructionMIPS.h +++ lldb/source/Plugins/Instruction/MIPS/EmulateInstructionMIPS.h @@ -80,8 +80,6 @@ return false; } - using EmulateInstruction::GetRegisterInfo; - llvm::Optional<lldb_private::RegisterInfo> GetRegisterInfo(lldb::RegisterKind reg_kind, uint32_t reg_num) override; Index: lldb/source/Plugins/Instruction/ARM64/EmulateInstructionARM64.h =================================================================== --- lldb/source/Plugins/Instruction/ARM64/EmulateInstructionARM64.h +++ lldb/source/Plugins/Instruction/ARM64/EmulateInstructionARM64.h @@ -65,8 +65,6 @@ return false; } - using EmulateInstruction::GetRegisterInfo; - llvm::Optional<lldb_private::RegisterInfo> GetRegisterInfo(lldb::RegisterKind reg_kind, uint32_t reg_num) override; Index: lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.h =================================================================== --- lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.h +++ lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.h @@ -135,7 +135,6 @@ bool TestEmulation(Stream *out_stream, ArchSpec &arch, OptionValueDictionary *test_data) override; - using EmulateInstruction::GetRegisterInfo; llvm::Optional<RegisterInfo> GetRegisterInfo(lldb::RegisterKind reg_kind, uint32_t reg_num) override; Index: lldb/source/Core/EmulateInstruction.cpp =================================================================== --- lldb/source/Core/EmulateInstruction.cpp +++ lldb/source/Core/EmulateInstruction.cpp @@ -582,12 +582,3 @@ unwind_plan.Clear(); return false; } - -bool EmulateInstruction::GetRegisterInfo(lldb::RegisterKind reg_kind, - uint32_t reg_num, - RegisterInfo ®_info) { - llvm::Optional<RegisterInfo> info = GetRegisterInfo(reg_kind, reg_num); - if (info) - reg_info = *info; - return info.has_value(); -} \ No newline at end of file Index: lldb/include/lldb/Core/EmulateInstruction.h =================================================================== --- lldb/include/lldb/Core/EmulateInstruction.h +++ lldb/include/lldb/Core/EmulateInstruction.h @@ -375,9 +375,6 @@ virtual bool TestEmulation(Stream *out_stream, ArchSpec &arch, OptionValueDictionary *test_data) = 0; - bool GetRegisterInfo(lldb::RegisterKind reg_kind, uint32_t reg_num, - RegisterInfo ®_info); - virtual llvm::Optional<RegisterInfo> GetRegisterInfo(lldb::RegisterKind reg_kind, uint32_t reg_num) = 0;
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits