Skip to content

Commit f2a1a02

Browse files
committed
reformat
1 parent 78b8dab commit f2a1a02

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3197,10 +3197,9 @@ size_t SymbolFileDWARF::ParseBlocksRecursive(Function &func) {
31973197
if (function_die) {
31983198
// We can't use the file address from the Function object as (in the OSO
31993199
// case) it will already be remapped to the main module.
3200-
DWARFRangeList ranges =
3201-
function_die.GetDIE()->GetAttributeAddressRanges(
3202-
function_die.GetCU(),
3203-
/*check_hi_lo_pc=*/true);
3200+
DWARFRangeList ranges = function_die.GetDIE()->GetAttributeAddressRanges(
3201+
function_die.GetCU(),
3202+
/*check_hi_lo_pc=*/true);
32043203
lldb::addr_t function_file_addr =
32053204
ranges.GetMinRangeBase(LLDB_INVALID_ADDRESS);
32063205
if (function_file_addr != LLDB_INVALID_ADDRESS)

lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,15 +420,14 @@ static size_t ParseFunctionBlocksForPDBSymbol(
420420
block->AddRange(Block::Range(
421421
raw_sym.getVirtualAddress() - func_file_vm_addr, raw_sym.getLength()));
422422
block->FinalizeRanges();
423-
424423
}
425424
auto results_up = pdb_symbol->findAllChildren();
426425
if (!results_up)
427426
return num_added;
428427

429428
while (auto symbol_up = results_up->getNext()) {
430-
num_added += ParseFunctionBlocksForPDBSymbol(func_file_vm_addr,
431-
symbol_up.get(), parent_block, false);
429+
num_added += ParseFunctionBlocksForPDBSymbol(
430+
func_file_vm_addr, symbol_up.get(), parent_block, false);
432431
}
433432
return num_added;
434433
}

lldb/source/Symbol/Function.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ Function::Function(CompileUnit *comp_unit, lldb::user_id_t func_uid,
282282
m_range(CollapseRanges(ranges)), m_prologue_byte_size(0) {
283283
assert(comp_unit != nullptr);
284284
lldb::addr_t base_file_addr = m_range.GetBaseAddress().GetFileAddress();
285-
for (const AddressRange &range: ranges)
285+
for (const AddressRange &range : ranges)
286286
m_block.AddRange(
287287
Block::Range(range.GetBaseAddress().GetFileAddress() - base_file_addr,
288288
range.GetByteSize()));

0 commit comments

Comments
 (0)