[all-commits] [llvm/llvm-project] a0ad06: make the AsmPrinterHandler array public

Jameson Nash via All-commits all-commits at lists.llvm.org
Tue Nov 3 07:03:21 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a0ad066ce490ba34f259dd0fc8ad5810bd92dc3d
      https://github.com/llvm/llvm-project/commit/a0ad066ce490ba34f259dd0fc8ad5810bd92dc3d
  Author: Jameson Nash <vtjnash at gmail.com>
  Date:   2020-11-03 (Tue, 03 Nov 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/AsmPrinter.h
    M llvm/include/llvm/CodeGen/AsmPrinterHandler.h
    M llvm/include/llvm/CodeGen/DebugHandlerBase.h
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
    M llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
    M llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
    M llvm/lib/Target/BPF/BTFDebug.cpp
    M llvm/unittests/CodeGen/AsmPrinterDwarfTest.cpp
    M llvm/unittests/CodeGen/TestAsmPrinter.h

  Log Message:
  -----------
  make the AsmPrinterHandler array public

This lets external consumers customize the output, similar to how
AssemblyAnnotationWriter lets the caller define callbacks when printing
IR. The array of handlers already existed, this just cleans up the code
so that it can be exposed publically.

Replaces https://reviews.llvm.org/D74158

Differential Revision: https://reviews.llvm.org/D89613




More information about the All-commits mailing list