[llvm] r239603 - Remove a hack that tries to align '*'.
Rafael Espindola
rafael.espindola at gmail.com
Fri Jun 12 05:42:13 PDT 2015
Author: rafael
Date: Fri Jun 12 07:42:13 2015
New Revision: 239603
URL: http://llvm.org/viewvc/llvm-project?rev=239603&view=rev
Log:
Remove a hack that tries to align '*'.
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.
Modified:
llvm/trunk/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp
Modified: llvm/trunk/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp?rev=239603&r1=239602&r2=239603&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp Fri Jun 12 07:42:13 2015
@@ -424,7 +424,7 @@ void AMDGPUInstPrinter::printLiteral(con
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,
More information about the llvm-commits
mailing list