15 #ifndef LLVM_SUPPORT_FORMATTEDSTREAM_H 16 #define LLVM_SUPPORT_FORMATTEDSTREAM_H 37 std::pair<unsigned, unsigned>
Position;
44 void write_impl(
const char *Ptr,
size_t Size)
override;
48 uint64_t current_pos()
const override {
52 return TheStream->
tell();
58 void ComputePosition(
const char *Ptr,
size_t size);
90 : TheStream(nullptr), Position(0, 0) {
113 unsigned getLine() {
return Position.second; }
135 void releaseStream() {
This class represents lattice values for constants.
size_t GetBufferSize() const
virtual raw_ostream & changeColor(enum Colors Color, bool Bold=false, bool BG=false)
Changes the foreground color of text that will be output from this point forward. ...
Position
Position to insert a new instruction relative to an existing instruction.
void SetUnbuffered()
Set the stream to be unbuffered.
virtual raw_ostream & reverseColor()
Reverses the foreground and background colors.
void SetBufferSize(size_t Size)
Set the stream to be buffered, using the specified buffer size.
Color
A "color", which is either even or odd.
auto size(R &&Range, typename std::enable_if< std::is_same< typename std::iterator_traits< decltype(Range.begin())>::iterator_category, std::random_access_iterator_tag >::value, void >::type *=nullptr) -> decltype(std::distance(Range.begin(), Range.end()))
Get the size of a range.
virtual bool is_displayed() const
This function determines if this stream is connected to a "tty" or "console" window.
formatted_raw_ostream & fdbgs()
fdbgs() - This returns a reference to a formatted_raw_ostream for debug output.
formatted_raw_ostream & ferrs()
ferrs() - This returns a reference to a formatted_raw_ostream for standard error. ...
virtual raw_ostream & resetColor()
Resets the colors to terminal defaults.
uint64_t tell() const
tell - Return the current offset with the file.
This class implements an extremely fast bulk output stream that can only output to a stream...
formatted_raw_ostream & fouts()
fouts() - This returns a reference to a formatted_raw_ostream for standard output.