Remove a hack that tries to align '*'.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 12 Jun 2015 12:42:13 +0000 (12:42 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 12 Jun 2015 12:42:13 +0000 (12:42 +0000)
The alignment is not required, so we can just remove it for now.

The old code is a hack as it depends on the buffer management to find
the current column.

If the alignment is really desirable, the proper way to do it is
to pass in a formatted_raw_stream that knows the current column.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239603 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp

index f70676943bb3223517ed5b1301b081b3c380f1b7..e811d5cff2210a18910574af44004910ec5741f0 100644 (file)
@@ -424,7 +424,7 @@ void AMDGPUInstPrinter::printLiteral(const MCInst *MI, unsigned OpNo,
 
 void AMDGPUInstPrinter::printLast(const MCInst *MI, unsigned OpNo,
                                   raw_ostream &O) {
-  printIfSet(MI, OpNo, O.indent(25 - O.GetNumBytesInBuffer()), "*", " ");
+  printIfSet(MI, OpNo, O, "*", " ");
 }
 
 void AMDGPUInstPrinter::printNeg(const MCInst *MI, unsigned OpNo,