mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 19:07:53 +08:00
remove dead code + simplify a little
llvm-svn: 201865
This commit is contained in:
@@ -468,7 +468,6 @@ ObjectFileELF::SetLoadAddress (Target &target,
|
||||
lldb::addr_t value,
|
||||
bool value_is_offset)
|
||||
{
|
||||
bool changed = false;
|
||||
ModuleSP module_sp = GetModule();
|
||||
if (module_sp)
|
||||
{
|
||||
@@ -480,7 +479,7 @@ ObjectFileELF::SetLoadAddress (Target &target,
|
||||
{
|
||||
const size_t num_sections = section_list->GetSize();
|
||||
size_t sect_idx = 0;
|
||||
|
||||
|
||||
for (sect_idx = 0; sect_idx < num_sections; ++sect_idx)
|
||||
{
|
||||
// Iterate through the object file sections to find all
|
||||
@@ -493,7 +492,6 @@ ObjectFileELF::SetLoadAddress (Target &target,
|
||||
++num_loaded_sections;
|
||||
}
|
||||
}
|
||||
changed = num_loaded_sections > 0;
|
||||
return num_loaded_sections > 0;
|
||||
}
|
||||
else
|
||||
@@ -503,7 +501,7 @@ ObjectFileELF::SetLoadAddress (Target &target,
|
||||
}
|
||||
}
|
||||
}
|
||||
return changed;
|
||||
return false; // If it changed
|
||||
}
|
||||
|
||||
ByteOrder
|
||||
|
||||
Reference in New Issue
Block a user