[llvm] [CodeGen] Port PrintMIR to new pass manager (PR #79440)
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 31 16:02:40 PST 2024
================
@@ -1866,7 +1867,7 @@ Error PassBuilder::parseMachinePass(MachineFunctionPassManager &MFPM,
}
#define MACHINE_FUNCTION_PASS(NAME, PASS_NAME, CONSTRUCTOR) \
if (Name == NAME) { \
- MFPM.addPass(PASS_NAME()); \
+ MFPM.addPass(PASS_NAME CONSTRUCTOR); \
----------------
aeubanks wrote:
there should be a default constructor for `PrintMIRPass` that uses `dbgs()`, e.g.
`PrintMIRPass() : OS(dbgs()) {}`
https://github.com/llvm/llvm-project/pull/79440
More information about the llvm-commits
mailing list