forked from OSchip/llvm-project
Remove redundant call to ParseCompileUnitLineTable. The call to sc.comp_unit->GetLineTable() will parse the line table if it hasn't been read in.
llvm-svn: 111605
This commit is contained in:
parent
4cc73ba337
commit
182702076b
|
@ -1976,11 +1976,7 @@ SymbolFileDWARF::FindFunctions(const RegularExpression& regex, bool append, Symb
|
|||
// We found the function, so we should find the line table
|
||||
// and line table entry as well
|
||||
LineTable *line_table = sc.comp_unit->GetLineTable();
|
||||
if (line_table == NULL)
|
||||
{
|
||||
if (ParseCompileUnitLineTable(sc))
|
||||
line_table = sc.comp_unit->GetLineTable();
|
||||
}
|
||||
|
||||
if (line_table != NULL)
|
||||
line_table->FindLineEntryByAddress (sc.function->GetAddressRange().GetBaseAddress(), sc.line_entry);
|
||||
|
||||
|
|
Loading…
Reference in New Issue