-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Module::print() instead of a PrintModulePass #66952
Conversation
llvm::Module has a print() method. It is unnecessary to create a pass just for the purpose of printing LLVM IR.
r? @estebank (rust_highfive has picked a reviewer for you, use r? to override) |
LGTM, thanks! @bors r+ rollup |
📌 Commit 85df207 has been approved by |
Use Module::print() instead of a PrintModulePass llvm::Module has a print() method. It is unnecessary to create a pass just for the purpose of printing LLVM IR.
Use Module::print() instead of a PrintModulePass llvm::Module has a print() method. It is unnecessary to create a pass just for the purpose of printing LLVM IR.
To find out if this PR caused the failure on rollup... |
Use Module::print() instead of a PrintModulePass llvm::Module has a print() method. It is unnecessary to create a pass just for the purpose of printing LLVM IR.
It's not, the rollup without it failed the same way: #67048 |
☀️ Test successful - checks-azure |
llvm::Module has a print() method. It is unnecessary to create a pass just for the purpose of printing LLVM IR.