[PATCH] D58952: [llvm] Skip over empty line table entries.
Paul Robinson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 6 16:07:35 PST 2019
probinson added a comment.
> I'm not sure I follow this - the line table maps instructions to source locations. If there are no instructions there's nothing to map
That's the intent. However, in practice it maps instruction *addresses* to source locations. Let's say you have a table that decodes to
0x0100 line 12
0x0100 line 14
0x0104 line 15
Go through looking for address 0x0100, you get an exact match that returns line 12 (why bother looking ahead to see whether the interval is empty?).
But look for address 0x0101 and you get line 14.
I'm arguing myself into agreeing with you that the extra work to look for a non-empty interval is probably a good thing; however this is something that each consumer will have to understand to do for itself.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58952/new/
https://reviews.llvm.org/D58952
More information about the llvm-commits
mailing list