[all-commits] [llvm/llvm-project] 67957a: [MC] Start merging MCAsmLayout into MCAssembler

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Jun 30 16:10:49 PDT 2024


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

  Changed paths:
    M llvm/include/llvm/MC/MCAsmLayout.h
    M llvm/include/llvm/MC/MCAssembler.h
    M llvm/include/llvm/MC/MCExpr.h
    M llvm/lib/MC/ELFObjectWriter.cpp
    M llvm/lib/MC/MCAssembler.cpp
    M llvm/lib/MC/MCExpr.cpp
    M llvm/lib/MC/WinCOFFObjectWriter.cpp
    M llvm/lib/Target/ARM/MCTargetDesc/ARMMachObjectWriter.cpp
    M llvm/lib/Target/Hexagon/MCTargetDesc/HexagonAsmBackend.cpp
    M llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
    M llvm/lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp

  Log Message:
  -----------
  [MC] Start merging MCAsmLayout into MCAssembler

Follow-up to 10c894cffd0f4bef21b54a43b5780240532e44cf.

MCAsmLayout, introduced by ac8a95498a99eb16dff9d3d0186616645d200b6e
(2010), provides APIs to compute fragment/symbol/section offsets.
The separate class is cumbersome and passing it around has overhead.
Let's remove it as the underlying implementation is tightly coupled with
MCAsmLayout anyway.

Some forwarders are added to ease migration.



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