[all-commits] [llvm/llvm-project] e94a00: [MC] Use a stub ctor for MCAsmLayout

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jul 2 10:10:56 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e94a00c3b8bf81fcd441c868644612fc887c7170
      https://github.com/llvm/llvm-project/commit/e94a00c3b8bf81fcd441c868644612fc887c7170
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-07-02 (Tue, 02 Jul 2024)

  Changed paths:
    M llvm/include/llvm/MC/MCAsmLayout.h
    M llvm/include/llvm/MC/MCAssembler.h
    M llvm/lib/MC/MCAssembler.cpp
    M llvm/lib/MC/MCExpr.cpp
    M llvm/lib/Target/AVR/MCTargetDesc/AVRMCExpr.cpp
    M llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.cpp

  Log Message:
  -----------
  [MC] Use a stub ctor for MCAsmLayout

and replace MCAssembler::Layout with a bool.
This mostly completes "[MC] Start merging MCAsmLayout into MCAssembler".

Note: BOLT used a dummy `MCAsmLayout` to call `getSymbolOffset`, which
is technically not supported. There is some discussion in
https://reviews.llvm.org/D154604 .

The revert f80a4072ced41b52363c63df28fea9a649f7f89e is incorrect and
actually broke bots.



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