llvm.org GIT mirror llvm / 372866c
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318059 91177308-0d34-0410-b5e6-96231b3b80d8 Petar Jovanovic 1 year, 11 months ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
10231023 O << " OS << '\\t' << StringRef(AsmString, I);\n";
10241024
10251025 O << " if (AsmString[I] != '\\0') {\n";
1026 O << " if (AsmString[I] == ' ' || AsmString[I] == '\\t')";
1026 O << " if (AsmString[I] == ' ' || AsmString[I] == '\\t') {\n";
10271027 O << " OS << '\\t';\n";
1028 O << " ++I;\n";
1029 O << " }\n";
10281030 O << " do {\n";
10291031 O << " if (AsmString[I] == '$') {\n";
10301032 O << " ++I;\n";