diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-10-18 19:34:31 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-10-18 19:34:31 +0000 |
commit | 8b8d2a4d999a392ebb90a5e6e739549314a3b52b (patch) | |
tree | 5cd211603390562e7628f23f158c7553b87da9b8 /lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp | |
parent | f12821a43cfa6ae37eaf66ad8978cd45c60a20ff (diff) | |
download | bcm5719-llvm-8b8d2a4d999a392ebb90a5e6e739549314a3b52b.tar.gz bcm5719-llvm-8b8d2a4d999a392ebb90a5e6e739549314a3b52b.zip |
Silence some -Wunused-but-set-variable with gcc 5.2.0
Cleanup some unused variables. NFC.
llvm-svn: 250661
Diffstat (limited to 'lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp')
-rw-r--r-- | lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp b/lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp index 2dfd80d7e53..eb5fec34fc2 100644 --- a/lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp +++ b/lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp @@ -117,21 +117,13 @@ UnwindAssemblyInstEmulation::GetNonCallSiteUnwindPlanFromAssembly (AddressRange& // cache the pc register number (in whatever register numbering this UnwindPlan uses) for // quick reference during instruction parsing. - uint32_t pc_reg_num = LLDB_INVALID_REGNUM; RegisterInfo pc_reg_info; - if (m_inst_emulator_ap->GetRegisterInfo (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_PC, pc_reg_info)) - pc_reg_num = pc_reg_info.kinds[unwind_plan.GetRegisterKind()]; - else - pc_reg_num = LLDB_INVALID_REGNUM; + m_inst_emulator_ap->GetRegisterInfo (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_PC, pc_reg_info); // cache the return address register number (in whatever register numbering this UnwindPlan uses) for // quick reference during instruction parsing. - uint32_t ra_reg_num = LLDB_INVALID_REGNUM; RegisterInfo ra_reg_info; - if (m_inst_emulator_ap->GetRegisterInfo (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_RA, ra_reg_info)) - ra_reg_num = ra_reg_info.kinds[unwind_plan.GetRegisterKind()]; - else - ra_reg_num = LLDB_INVALID_REGNUM; + m_inst_emulator_ap->GetRegisterInfo (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_RA, ra_reg_info); for (size_t idx=0; idx<num_instructions; ++idx) { |