[all-commits] [llvm/llvm-project] ae1ba6: [ELF] Replace uncompressed InputSectionBase::data(...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Feb 21 00:39:41 PST 2022


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

  Changed paths:
    M lld/ELF/AArch64ErrataFix.cpp
    M lld/ELF/ARMErrataFix.cpp
    M lld/ELF/Arch/X86_64.cpp
    M lld/ELF/Driver.cpp
    M lld/ELF/EhFrame.cpp
    M lld/ELF/ICF.cpp
    M lld/ELF/InputFiles.cpp
    M lld/ELF/InputSection.cpp
    M lld/ELF/InputSection.h
    M lld/ELF/MarkLive.cpp
    M lld/ELF/Relocations.cpp
    M lld/ELF/SyntheticSections.cpp
    M lld/ELF/Writer.cpp

  Log Message:
  -----------
  [ELF] Replace uncompressed InputSectionBase::data() with rawData. NFC

In many call sites we know uncompression cannot happen (non-SHF_ALLOC, or the
data (even if compressed) must have been uncompressed by a previous pass).
Prefer rawData in these cases. data() increases code size and prevents
optimization on rawData.




More information about the All-commits mailing list