diff options
author | Stephen Tozer <stephen.tozer@sony.com> | 2024-06-12 11:40:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-12 11:40:57 +0100 |
commit | 297b6dea8c7652b62933e78ef79e60ce59fc1ec0 (patch) | |
tree | bcc6a8088e5fa7c883bdf70f0024df0f795abec8 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | ccaaa0000f585ac0724452f8a7baee7307dae4eb (diff) | |
download | llvm-297b6dea8c7652b62933e78ef79e60ce59fc1ec0.zip llvm-297b6dea8c7652b62933e78ef79e60ce59fc1ec0.tar.gz llvm-297b6dea8c7652b62933e78ef79e60ce59fc1ec0.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions