aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/FormattedStream.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-19 01:38:42 +0000
committerChris Lattner <sabre@nondot.org>2009-12-19 01:38:42 +0000
commitcd0129f5a6f0485ecac525c17a3c5dff0a19ca5f (patch)
treea6a6cd779ab13506bae631aac939fad91d058972 /include/llvm/Support/FormattedStream.h
parentc63ca0a71b299ee0b8fc7dc8405d7f3c856ecfa3 (diff)
Make some methods const. The only interesting change here is that
it changes raw_fd_ostream::preferred_buffer_size to return zero on a scary stat failure instead of setting the stream to an error state. This method really should not mutate the stream. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91740 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FormattedStream.h')
-rw-r--r--include/llvm/Support/FormattedStream.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/FormattedStream.h b/include/llvm/Support/FormattedStream.h
index 24a3546200..09ab17c446 100644
--- a/include/llvm/Support/FormattedStream.h
+++ b/include/llvm/Support/FormattedStream.h
@@ -59,7 +59,7 @@ namespace llvm
/// current_pos - Return the current position within the stream,
/// not counting the bytes currently in the buffer.
- virtual uint64_t current_pos() {
+ virtual uint64_t current_pos() const {
// This has the same effect as calling TheStream.current_pos(),
// but that interface is private.
return TheStream->tell() - TheStream->GetNumBytesInBuffer();