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

Jameson Nash via All-commits all-commits at lists.llvm.org
Fri Oct 16 13:28:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ac2def2d8d8c9aa6f96f0c869a5b988ae602385a
      https://github.com/llvm/llvm-project/commit/ac2def2d8d8c9aa6f96f0c869a5b988ae602385a
  Author: Jameson Nash <vtjnash at gmail.com>
  Date:   2020-10-16 (Fri, 16 Oct 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/DebugHandlerBase.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
    M llvm/lib/CodeGen/MachineModuleInfo.cpp
    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.

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




More information about the All-commits mailing list