summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2019-03-13 01:37:58 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2019-03-13 01:37:58 +0000
commit6e64a14804e9a5c3dd75e7343ef22e795af4abfa (patch)
tree236e547b9a4ab23ac106836bef574023b8f30a83 /llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
parent796aa0e49af1895b251af49eb93c5bda2fbca6d6 (diff)
downloadbcm5719-llvm-6e64a14804e9a5c3dd75e7343ef22e795af4abfa.tar.gz
bcm5719-llvm-6e64a14804e9a5c3dd75e7343ef22e795af4abfa.zip
Revert "[llvm] Skip over empty line table entries."
This reverts commit r355972. See the discussion at https://reviews.llvm.org/D58952. llvm-svn: 356001
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
index dee9428be29..a2c25248618 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
@@ -872,13 +872,6 @@ uint32_t DWARFDebugLine::LineTable::findRowInSeq(
if (RowPos == LastRow) {
return Seq.LastRowIndex - 1;
}
- // In some cases, e.g. first instruction in a function, the compiler generates
- // two entries, both with the same address. We want the last one.
- while (RowPos + 1 < LastRow &&
- RowPos->Address.Address == (RowPos + 1)->Address.Address) {
- ++RowPos;
- }
- assert(RowPos < LastRow);
assert(Seq.SectionIndex == RowPos->Address.SectionIndex);
uint32_t Index = Seq.FirstRowIndex + (RowPos - FirstRow);
if (RowPos->Address.Address > Address.Address) {
OpenPOWER on IntegriCloud