[llvm] [CodeGen][NewPM] Port `AsmPrinter` to new pass manager (PR #99320)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 06:12:02 PDT 2024
================
@@ -517,6 +525,16 @@ class Target {
/// createAsmPrinter - Create a target specific assembly printer pass. This
/// takes ownership of the MCStreamer object.
+ AsmPrinterLegacy *
+ createAsmPrinterLegacy(TargetMachine &TM,
----------------
aengelke wrote:
What's the point of having the legacy pass overridable by targets? This doesn't seem to be useful (or used), because the legacy pass just wraps the AsmPrinter, which provides virtual functions for everything.
https://github.com/llvm/llvm-project/pull/99320
More information about the llvm-commits
mailing list