summaryrefslogtreecommitdiff
path: root/include/llvm/Support/FormattedStream.h
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2009-07-23 23:21:10 +0000
committerDavid Greene <greened@obbligato.org>2009-07-23 23:21:10 +0000
commited0e2adc7076365596ee3d26d5ba5240ce13f23d (patch)
tree9b3b55942b5524a2b3abcb296e98103ab3a6fa76 /include/llvm/Support/FormattedStream.h
parenteee839dd3c5cb87e51a522b4800674d7680fef70 (diff)
downloadllvm-ed0e2adc7076365596ee3d26d5ba5240ce13f23d.tar.gz
llvm-ed0e2adc7076365596ee3d26d5ba5240ce13f23d.tar.bz2
llvm-ed0e2adc7076365596ee3d26d5ba5240ce13f23d.tar.xz
Write space padding as one string to speed up comment printing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76910 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FormattedStream.h')
-rw-r--r--include/llvm/Support/FormattedStream.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/llvm/Support/FormattedStream.h b/include/llvm/Support/FormattedStream.h
index dc30cdb5fe..4b13ff2d5a 100644
--- a/include/llvm/Support/FormattedStream.h
+++ b/include/llvm/Support/FormattedStream.h
@@ -27,16 +27,23 @@ namespace llvm
/// DELETE_STREAM - Tell the destructor to delete the held stream.
///
const static bool DELETE_STREAM = true;
+
/// PRESERVE_STREAM - Tell the destructor to not delete the held
/// stream.
///
const static bool PRESERVE_STREAM = false;
-
+
+ /// MAX_COLUMN_PAD - This is the maximum column padding we ever
+ /// expect to see.
+ ///
+ const static unsigned MAX_COLUMN_PAD = 100;
+
private:
/// TheStream - The real stream we output to. We set it to be
/// unbuffered, since we're already doing our own buffering.
///
raw_ostream *TheStream;
+
/// DeleteStream - Do we need to delete TheStream in the
/// destructor?
///