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:
Jim Ingham 2010-08-20 01:13:58 +00:00
parent 4cc73ba337
commit 182702076b
1 changed files with 1 additions and 5 deletions

View File

@ -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);