aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/SmallVector.cpp
diff options
context:
space:
mode:
authorKim-Anh Tran <kimanh@chromium.org>2021-08-30 14:19:34 +0200
committerKim-Anh Tran <kimanh@chromium.org>2021-08-30 14:45:46 +0200
commit3973d8b29e249a6ea4aceaa4225dfde5663937c6 (patch)
tree0eef6f3511038e85ccccc4983334f569170d6b73 /llvm/lib/Support/SmallVector.cpp
parent86f5288eae4a27fd2f497ac45ad087d643ad73a8 (diff)
downloadllvm-3973d8b29e249a6ea4aceaa4225dfde5663937c6.zip
llvm-3973d8b29e249a6ea4aceaa4225dfde5663937c6.tar.gz
llvm-3973d8b29e249a6ea4aceaa4225dfde5663937c6.tar.bz2
[lldb] Return all line entries matchign a line if no column is specified
Previously, if no column was specified, ResolveSymbolContext would take the first match returned by FindLineEntryIndexByFileIndex, and reuse it to find subsequent exact matches. With the introduction of columns, columns are now considered when matching the line entries. This leads to a problem if one wants to get all existing line entries that match that line, since now the column is also used for the exact match. This way, all line entries are filtered out that have a different column number, but the same line number. This patch changes that by ignoring the column information of the first match if the original request of ResolveSymbolContext was also ignoring it. Reviewed By: mib Differential Revision: https://reviews.llvm.org/D108816
Diffstat (limited to 'llvm/lib/Support/SmallVector.cpp')
0 files changed, 0 insertions, 0 deletions