[all-commits] [llvm/llvm-project] 9328c2: [ELF] Track line number precisely

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Jul 27 14:47:03 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9328c20cc80c4fb8dc86c3141e1be1739e07b3fc
      https://github.com/llvm/llvm-project/commit/9328c20cc80c4fb8dc86c3141e1be1739e07b3fc
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-07-27 (Sat, 27 Jul 2024)

  Changed paths:
    M lld/ELF/ScriptLexer.cpp
    M lld/ELF/ScriptLexer.h
    M lld/test/ELF/linkerscript/overlay.test
    M lld/test/ELF/linkerscript/sections.s

  Log Message:
  -----------
  [ELF] Track line number precisely

`getLineNumber` is both imprecise (when `INCLUDE` is used) and
inefficient (see https://reviews.llvm.org/D104137). Track line number
precisely now that we have `struct Buffer` abstraction from #100493.



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