Unverified Commit 297b6dea authored by Stephen Tozer's avatar Stephen Tozer Committed by GitHub
Browse files

[Flang] Use PrintModulePass to print LLVM IR from the frontend (#95142)

The Flang frontend currently prints LLVM IR modules using
llvm::Module::print(); this works for default cases, but skips some of
the logic that IR printer passes use, specifically the use of the
--write-experimental-debuginfo flag to control debug info format. This
patch replaces the use of print() with the PrintModulePass, bringing the
printing behaviour to parity with clang's frontend.
parent ccaaa000
Pipeline #3571 canceled with stages
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment