Skip to content

Commit 3cf56b5

Browse files
authored
[lldb] Remove some unused code in SymbolFileDWARF::ResolveFunction (#123206)
The purpose of this originally was to check for DWARF which refers to garbage-collected functions (by checking whether we're able to get a good address out of the function). The address check has been removed in https://reviews.llvm.org/D112310, so the code computing it is not doing anything.
1 parent 83a8bb3 commit 3cf56b5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2455,18 +2455,12 @@ bool SymbolFileDWARF::ResolveFunction(const DWARFDIE &orig_die,
24552455
}
24562456
assert(die && die.Tag() == DW_TAG_subprogram);
24572457
if (GetFunction(die, sc)) {
2458-
Address addr;
24592458
// Parse all blocks if needed
24602459
if (inlined_die) {
24612460
Block &function_block = sc.function->GetBlock(true);
24622461
sc.block = function_block.FindBlockByID(inlined_die.GetID());
24632462
if (sc.block == nullptr)
24642463
sc.block = function_block.FindBlockByID(inlined_die.GetOffset());
2465-
if (sc.block == nullptr || !sc.block->GetStartAddress(addr))
2466-
addr.Clear();
2467-
} else {
2468-
sc.block = nullptr;
2469-
addr = sc.function->GetAddressRange().GetBaseAddress();
24702464
}
24712465

24722466
sc_list.Append(sc);

0 commit comments

Comments
 (0)