[PATCH] D40247: IR printing improvement for loop passes - handle -print-module-scope
Sanjoy Das via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 21 20:51:20 PST 2017
sanjoy accepted this revision.
sanjoy added inline comments.
This revision is now accepted and ready to land.
================
Comment at: lib/Analysis/LoopInfo.cpp:742
+ // printing whole module
+ OS << *L.getHeader()->getParent()->getParent();
+ return;
----------------
Use BasicBlock::getModule() here.
https://reviews.llvm.org/D40247
More information about the llvm-commits
mailing list