[all-commits] [llvm/llvm-project] 99e663: MCAssembler: Remove getWriterPtr

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Jul 22 22:31:30 PDT 2024


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

  Changed paths:
    M llvm/include/llvm/MC/MCAssembler.h
    M llvm/lib/MC/MCAssembler.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp

  Log Message:
  -----------
  MCAssembler: Remove getWriterPtr

Commit 8728e097dfbec3630a1dd907431c0f14274a1ae8 (2018) introduced
getWriterPtr, which might be nullptr for MCAsmStreamer. This lured call
sites to use getWriterPtr when it's guaranteed to be non-null for
MCObjectstreamer. Remove this misleading API.



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