[all-commits] [llvm/llvm-project] 257192: MCSectionELF: Remove classof

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Jul 25 09:50:42 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2571924ad6b8ca4a914ef613677cc41079224428
      https://github.com/llvm/llvm-project/commit/2571924ad6b8ca4a914ef613677cc41079224428
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-25 (Fri, 25 Jul 2025)

  Changed paths:
    M llvm/include/llvm/MC/MCSectionELF.h
    M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
    M llvm/lib/MC/ELFObjectWriter.cpp
    M llvm/lib/MC/MCParser/ELFAsmParser.cpp
    M llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp
    M llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
    M llvm/lib/Target/AVR/AVRAsmPrinter.cpp
    M llvm/lib/Target/BPF/BTFDebug.cpp
    M llvm/lib/Target/BPF/MCTargetDesc/BPFELFObjectWriter.cpp

  Log Message:
  -----------
  MCSectionELF: Remove classof

The object file format specific derived classes are used in context like
MCStreamer and MCObjectTargetWriter where the type is statically known.
We don't use isa/dyn_cast and we want to eliminate
MCSection::SectionVariant in the base class.



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