summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-08-31 20:03:14 +0000
committerZachary Turner <zturner@google.com>2016-08-31 20:03:14 +0000
commit6c978aa9da30053b211c694de3eb8edc0ac88dad (patch)
tree9a401fab8edb088a745bbf8b16004ba2e9723e67 /lldb
parent85d79744df643b6ee828a6d1f72d7a070ebf6a3b (diff)
downloadbcm5719-llvm-6c978aa9da30053b211c694de3eb8edc0ac88dad.tar.gz
bcm5719-llvm-6c978aa9da30053b211c694de3eb8edc0ac88dad.zip
Remove unused variables.
Patch by Taras Tsugrii llvm-svn: 280283
Diffstat (limited to 'lldb')
-rw-r--r--lldb/source/DataFormatters/TypeCategoryMap.cpp1
-rw-r--r--lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp3
-rw-r--r--lldb/source/Target/Process.cpp2
-rw-r--r--lldb/source/Target/ThreadPlanStepOut.cpp2
4 files changed, 1 insertions, 7 deletions
diff --git a/lldb/source/DataFormatters/TypeCategoryMap.cpp b/lldb/source/DataFormatters/TypeCategoryMap.cpp
index 984c7f213de..fc28783e36f 100644
--- a/lldb/source/DataFormatters/TypeCategoryMap.cpp
+++ b/lldb/source/DataFormatters/TypeCategoryMap.cpp
@@ -394,7 +394,6 @@ TypeCategoryMap::ForEach(ForEachCallback callback)
{
if (pos->second->IsEnabled())
continue;
- KeyType type = pos->first;
if (!callback(pos->second))
break;
}
diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
index f8bce2b7b99..6888532f370 100644
--- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
+++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
@@ -1751,7 +1751,6 @@ AppleObjCRuntimeV2::UpdateISAToDescriptorMapSharedCache()
bool success = false;
- bool any_found = false;
diagnostics.Clear();
@@ -1812,7 +1811,7 @@ AppleObjCRuntimeV2::UpdateISAToDescriptorMapSharedCache()
process->GetByteOrder(),
addr_size);
- any_found = (ParseClassInfoArray (class_infos_data, num_class_infos) > 0);
+ ParseClassInfoArray (class_infos_data, num_class_infos);
}
}
else
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp
index 84f7f576c70..f5f8660a122 100644
--- a/lldb/source/Target/Process.cpp
+++ b/lldb/source/Target/Process.cpp
@@ -6602,7 +6602,6 @@ Process::GetMemoryRegions (std::vector<lldb::MemoryRegionInfoSP>& region_list)
Error error;
- lldb::addr_t range_base = 0;
lldb::addr_t range_end = 0;
region_list.clear();
@@ -6617,7 +6616,6 @@ Process::GetMemoryRegions (std::vector<lldb::MemoryRegionInfoSP>& region_list)
break;
}
- range_base = region_info->GetRange().GetRangeBase();
range_end = region_info->GetRange().GetRangeEnd();
if( region_info->GetMapped() == MemoryRegionInfo::eYes )
{
diff --git a/lldb/source/Target/ThreadPlanStepOut.cpp b/lldb/source/Target/ThreadPlanStepOut.cpp
index eac4a36b0a9..55f8818d689 100644
--- a/lldb/source/Target/ThreadPlanStepOut.cpp
+++ b/lldb/source/Target/ThreadPlanStepOut.cpp
@@ -71,8 +71,6 @@ ThreadPlanStepOut::ThreadPlanStepOut
m_step_out_to_id = return_frame_sp->GetStackID();
m_immediate_step_from_id = immediate_return_from_sp->GetStackID();
-
- StackID frame_zero_id = m_thread.GetStackFrameAtIndex(0)->GetStackID();
// If the frame directly below the one we are returning to is inlined, we have to be
// a little more careful. It is non-trivial to determine the real "return code address" for
OpenPOWER on IntegriCloud