diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2011-04-04 07:19:18 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2011-04-04 07:19:18 +0000 |
commit | cc5d992bc167ded99b039ed8fdde190a586a1562 (patch) | |
tree | acd22422d6ea20fa17cbb434eb99daf9a81c3650 /include | |
parent | 10fdd5a0f622bdea4003ffa818eeb9486bfb0730 (diff) | |
download | external_llvm-cc5d992bc167ded99b039ed8fdde190a586a1562.zip external_llvm-cc5d992bc167ded99b039ed8fdde190a586a1562.tar.gz external_llvm-cc5d992bc167ded99b039ed8fdde190a586a1562.tar.bz2 |
Region: Allow user control the printing style of the print function.
Contributed by: etherzhhb@gmail.com
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128808 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/RegionInfo.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Analysis/RegionInfo.h b/include/llvm/Analysis/RegionInfo.h index a36ca11..9b4b637 100644 --- a/include/llvm/Analysis/RegionInfo.h +++ b/include/llvm/Analysis/RegionInfo.h @@ -335,12 +335,16 @@ public: return RI; } + /// PrintStyle - Print region in difference ways. + enum PrintStyle { PrintNone, PrintBB, PrintRN }; + /// @brief Print the region. /// /// @param OS The output stream the Region is printed to. /// @param printTree Print also the tree of subregions. /// @param level The indentation level used for printing. - void print(raw_ostream& OS, bool printTree = true, unsigned level = 0) const; + void print(raw_ostream& OS, bool printTree = true, unsigned level = 0, + enum PrintStyle Style = PrintNone) const; /// @brief Print the region to stderr. void dump() const; |