diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-19 01:38:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-19 01:38:42 +0000 |
commit | cd0129f5a6f0485ecac525c17a3c5dff0a19ca5f (patch) | |
tree | a6a6cd779ab13506bae631aac939fad91d058972 /lib/Support/raw_os_ostream.cpp | |
parent | c63ca0a71b299ee0b8fc7dc8405d7f3c856ecfa3 (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 'lib/Support/raw_os_ostream.cpp')
-rw-r--r-- | lib/Support/raw_os_ostream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/raw_os_ostream.cpp b/lib/Support/raw_os_ostream.cpp index 3374dd7a66..44f2325d7f 100644 --- a/lib/Support/raw_os_ostream.cpp +++ b/lib/Support/raw_os_ostream.cpp @@ -27,4 +27,4 @@ void raw_os_ostream::write_impl(const char *Ptr, size_t Size) { OS.write(Ptr, Size); } -uint64_t raw_os_ostream::current_pos() { return OS.tellp(); } +uint64_t raw_os_ostream::current_pos() const { return OS.tellp(); } |