[all-commits] [llvm/llvm-project] 21fac2: [MC] Ensure all new sections have a MCDataFragment

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Jun 23 10:09:14 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 21fac2d1d060b0f9b11a746718e58d4cd1ee97e5
      https://github.com/llvm/llvm-project/commit/21fac2d1d060b0f9b11a746718e58d4cd1ee97e5
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/lib/MC/MCAssembler.cpp
    M llvm/lib/MC/MCContext.cpp
    M llvm/lib/MC/MCMachOStreamer.cpp
    M llvm/tools/dsymutil/MachOUtils.cpp

  Log Message:
  -----------
  [MC] Ensure all new sections have a MCDataFragment

MCAssembler::layout ensures that every section has at least one
fragment, which simplifies MCAsmLayout::getSectionAddressSize (see
e73353c7201a3080851d99a16f5fe2c17f7697c6 from 2010). It's better to
ensure the condition is satisfied at create time (COFF, GOFF, Mach-O) to
simplify more fragment processing.



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