summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/RegionInfo.h
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2011-04-04 07:19:18 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2011-04-04 07:19:18 +0000
commitcc5d992bc167ded99b039ed8fdde190a586a1562 (patch)
treeacd22422d6ea20fa17cbb434eb99daf9a81c3650 /include/llvm/Analysis/RegionInfo.h
parent10fdd5a0f622bdea4003ffa818eeb9486bfb0730 (diff)
downloadllvm-cc5d992bc167ded99b039ed8fdde190a586a1562.tar.gz
llvm-cc5d992bc167ded99b039ed8fdde190a586a1562.tar.bz2
llvm-cc5d992bc167ded99b039ed8fdde190a586a1562.tar.xz
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/llvm/Analysis/RegionInfo.h')
-rw-r--r--include/llvm/Analysis/RegionInfo.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Analysis/RegionInfo.h b/include/llvm/Analysis/RegionInfo.h
index a36ca110d8..9b4b637fe8 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;