diff options
author | Sebastian Pop <sebpop@gmail.com> | 2016-07-27 05:02:17 +0000 |
---|---|---|
committer | Sebastian Pop <sebpop@gmail.com> | 2016-07-27 05:02:17 +0000 |
commit | 906c5ef31ef67f74d0a1df7b3e150c2c80a7d182 (patch) | |
tree | 21cede88a8993163d57d68ad38024649920087dc /lib/Analysis/LoopInfo.cpp | |
parent | fde7c9daa63ee8033b7a2fb5e5da794254a0be8b (diff) |
add a verbose mode to Loop->print() to print all the basic blocks of a loop
Differential Revision: https://reviews.llvm.org/D22817
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276838 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopInfo.cpp')
-rw-r--r-- | lib/Analysis/LoopInfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index 16325f6e78a..cbd5edec917 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/lib/Analysis/LoopInfo.cpp @@ -387,6 +387,10 @@ BasicBlock *Loop::getUniqueExitBlock() const { LLVM_DUMP_METHOD void Loop::dump() const { print(dbgs()); } + +LLVM_DUMP_METHOD void Loop::dumpVerbose() const { + print(dbgs(), /*Depth=*/ 0, /*Verbose=*/ true); +} #endif //===----------------------------------------------------------------------===// |