[all-commits] [llvm/llvm-project] 26cc65: [ELF] Improve comment of InputSection::file and up...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Jan 26 10:43:13 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26cc651f1b2a9c74ce332a14f0e35c03db34876b
      https://github.com/llvm/llvm-project/commit/26cc651f1b2a9c74ce332a14f0e35c03db34876b
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-01-26 (Fri, 26 Jan 2024)

  Changed paths:
    M lld/ELF/InputSection.h

  Log Message:
  -----------
  [ELF] Improve comment of InputSection::file and update getFile. NFC (#79550)

Clarify a comment after #78944.

All uses of `getFile()` assert `file` is non-null. `getFile` is not used
with a
synthetic section. Replace `cast_or_null` with `cast`.




More information about the All-commits mailing list