mirror of
https://github.com/RPCSX/llvm.git
synced 2025-05-13 10:56:01 +00:00
AsmWriterEmitter.cpp assumes that all operands of a printed alias
will appear after a blank. This assumption does not hold in the ARM target. Patch by: Roger Ferrer Ibanez Differential Revision: http://reviews.llvm.org/D20234 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271666 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6762cdb53a
commit
d02bd6484d
@ -1007,13 +1007,14 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) {
|
||||
// Code that prints the alias, replacing the operands with the ones from the
|
||||
// MCInst.
|
||||
O << " unsigned I = 0;\n";
|
||||
O << " while (AsmString[I] != ' ' && AsmString[I] != '\t' &&\n";
|
||||
O << " AsmString[I] != '\\0')\n";
|
||||
O << " while (AsmString[I] != ' ' && AsmString[I] != '\\t' &&\n";
|
||||
O << " AsmString[I] != '$' && AsmString[I] != '\\0')\n";
|
||||
O << " ++I;\n";
|
||||
O << " OS << '\\t' << StringRef(AsmString, I);\n";
|
||||
|
||||
O << " if (AsmString[I] != '\\0') {\n";
|
||||
O << " OS << '\\t';\n";
|
||||
O << " if (AsmString[I] == ' ' || AsmString[I] == '\\t')";
|
||||
O << " OS << '\\t';\n";
|
||||
O << " do {\n";
|
||||
O << " if (AsmString[I] == '$') {\n";
|
||||
O << " ++I;\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user