mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
switch formattedstream to use raw_ostream::indent. This eliminates
the weird MAX_COLUMN_PAD limitation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79785 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -63,16 +63,7 @@ void formatted_raw_ostream::PadToColumn(unsigned NewCol) {
|
||||
ComputeColumn(getBufferStart(), GetNumBytesInBuffer());
|
||||
|
||||
// Output spaces until we reach the desired column.
|
||||
unsigned num = NewCol - ColumnScanned;
|
||||
if (NewCol < ColumnScanned || num < 1)
|
||||
num = 1;
|
||||
|
||||
// Keep a buffer of spaces handy to speed up processing.
|
||||
const char *Spaces = " "
|
||||
" ";
|
||||
|
||||
assert(num < MAX_COLUMN_PAD && "Unexpectedly large column padding");
|
||||
write(Spaces, num);
|
||||
indent(std::max(int(NewCol - ColumnScanned), 1));
|
||||
}
|
||||
|
||||
void formatted_raw_ostream::write_impl(const char *Ptr, size_t Size) {
|
||||
|
Reference in New Issue
Block a user