15 #ifndef LLVM_SUPPORT_FORMATTEDSTREAM_H
16 #define LLVM_SUPPORT_FORMATTEDSTREAM_H
53 std::pair<unsigned, unsigned> Position;
60 virtual void write_impl(
const char *Ptr,
size_t Size)
LLVM_OVERRIDE;
68 return TheStream->
tell();
74 void ComputePosition(
const char *Ptr,
size_t size);
105 DeleteStream = Delete;
131 unsigned getLine() {
return Position.second; }
155 void releaseStream() {
171 formatted_raw_ostream &
fouts();
175 formatted_raw_ostream &
ferrs();
179 formatted_raw_ostream &
fdbgs();
virtual raw_ostream & changeColor(enum Colors Color, bool Bold=false, bool BG=false)
uint64_t tell() const
tell - Return the current offset with the file.
virtual bool is_displayed() const
virtual raw_ostream & reverseColor()
Reverses the forground and background colors.
void SetBufferSize(size_t Size)
size_t GetBufferSize() const
formatted_raw_ostream & fdbgs()
formatted_raw_ostream & ferrs()
virtual raw_ostream & resetColor()
formatted_raw_ostream & fouts()