summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2010-08-20 01:13:58 +0000
committerJim Ingham <jingham@apple.com>2010-08-20 01:13:58 +0000
commit182702076b7e34fd69ce3e3e1a9098fa8991f025 (patch)
tree3513e7de652538f41f82c55224d1e13e69d6b963
parent4cc73ba337ef9c80656bf2e48f7be820d95156d8 (diff)
downloadbcm5719-llvm-182702076b7e34fd69ce3e3e1a9098fa8991f025.tar.gz
bcm5719-llvm-182702076b7e34fd69ce3e3e1a9098fa8991f025.zip
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
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
index 7e4478deda7..96aec7827d7 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
@@ -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);
OpenPOWER on IntegriCloud