mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
fix printing of alias instructions by removing redundant spacing
Some alias instructions are printed with an extra space after the tab character. Fix this by skipping that space when the tab character is printed so that the instructions are aligned with the rest of the code. Patch by Milos Stojanovic. Differential Revision: https://reviews.llvm.org/D35946 llvm-svn: 318059
This commit is contained in:
parent
c7b29108bf
commit
31379532fd
@ -1024,8 +1024,10 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) {
|
||||
O << " OS << '\\t' << StringRef(AsmString, I);\n";
|
||||
|
||||
O << " if (AsmString[I] != '\\0') {\n";
|
||||
O << " if (AsmString[I] == ' ' || AsmString[I] == '\\t')";
|
||||
O << " if (AsmString[I] == ' ' || AsmString[I] == '\\t') {\n";
|
||||
O << " OS << '\\t';\n";
|
||||
O << " ++I;\n";
|
||||
O << " }\n";
|
||||
O << " do {\n";
|
||||
O << " if (AsmString[I] == '$') {\n";
|
||||
O << " ++I;\n";
|
||||
|
Loading…
Reference in New Issue
Block a user