[PATCH] D89613: make the AsmPrinterHandler array public

Jameson Nash via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 16 22:04:02 PDT 2020


vtjnash created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
vtjnash requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89613

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89613.298804.patch
Type: text/x-patch
Size: 19104 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201017/2c8296d6/attachment.bin>


More information about the llvm-commits mailing list