aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-11-26 03:33:13 +0000
committerTed Kremenek <kremenek@apple.com>2008-11-26 03:33:13 +0000
commit5984680c1fe7ad98381154c26f9c009e4c91b08c (patch)
treedfa90135469f3e70d5f69b832423d0d0c941f373 /include/llvm/Support
parent896617b776e7b015346160645b19be776cbe3805 (diff)
Add 'tell' method to raw_fd_ostream that clients can use to query the current location in the file the stream is writing to.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60085 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r--include/llvm/Support/raw_ostream.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h
index 709a063e2a..2b4b17d7b2 100644
--- a/include/llvm/Support/raw_ostream.h
+++ b/include/llvm/Support/raw_ostream.h
@@ -175,7 +175,10 @@ public:
virtual void flush_impl();
/// close - Manually flush the stream and close the file.
- void close();
+ void close();
+
+ /// tell - Return the current offset with the file.
+ uint64_t tell();
};
/// raw_stdout_ostream - This is a stream that always prints to stdout.