[all-commits] [llvm/llvm-project] 2c022e: [lldb] Replace LineTable::upper_bound with GetLine...

Pavel Labath via All-commits all-commits at lists.llvm.org
Thu Feb 20 01:18:06 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c022e3617ec9bab3c9ab17464610843563ed9ed
      https://github.com/llvm/llvm-project/commit/2c022e3617ec9bab3c9ab17464610843563ed9ed
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2025-02-20 (Thu, 20 Feb 2025)

  Changed paths:
    M lldb/include/lldb/Symbol/LineTable.h
    M lldb/source/Symbol/LineTable.cpp
    M lldb/unittests/Symbol/LineTableTest.cpp

  Log Message:
  -----------
  [lldb] Replace LineTable::upper_bound with GetLineEntryIndexRange (#127806)

After (too) much deliberation, I came to the conclusion that this isn't
the right abstraction, as it doesn't behave completely like the standard
upper_bound method. What I really wanted was to get the range of line
entries for a given address range -- so I implement just that.

lower_bound is still useful as a primitive for building other kinds of
lookups.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list