[all-commits] [llvm/llvm-project] 47d18b: [ELF] Remove SharedSymbol::getFile. NFC

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Feb 23 17:58:05 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 47d18be58b61f80f9be0b84c2ac00f0741608a83
      https://github.com/llvm/llvm-project/commit/47d18be58b61f80f9be0b84c2ac00f0741608a83
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-02-23 (Wed, 23 Feb 2022)

  Changed paths:
    M lld/ELF/Driver.cpp
    M lld/ELF/MarkLive.cpp
    M lld/ELF/Relocations.cpp
    M lld/ELF/Symbols.h

  Log Message:
  -----------
  [ELF] Remove SharedSymbol::getFile. NFC

Symbol.h depends on InputFiles.h. This change moves us toward dropping the
weird dependency.

The call sites will become slightly uglier (`cast<SharedFile>(s->file)`), but
the compromise is acceptable.




More information about the All-commits mailing list