mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
Remove some overzealous checks that were rejecting
valid comments in inline assembly. gcc.target/i386/20011009-1.c git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57365 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
df75bbae94
commit
8b1e054938
@ -1246,21 +1246,17 @@ void AsmPrinter::printInlineAsm(const MachineInstr *MI) const {
|
||||
break;
|
||||
case '|':
|
||||
++LastEmitted; // consume '|' character.
|
||||
if (CurVariant == -1) {
|
||||
cerr << "Found '|' character outside of variant in inline asm "
|
||||
<< "string: '" << AsmStr << "'\n";
|
||||
exit(1);
|
||||
}
|
||||
++CurVariant; // We're in the next variant.
|
||||
if (CurVariant == -1)
|
||||
O << '|'; // this is gcc's behavior for | outside a variant
|
||||
else
|
||||
++CurVariant; // We're in the next variant.
|
||||
break;
|
||||
case ')': // $) -> same as GCC's } char.
|
||||
++LastEmitted; // consume ')' character.
|
||||
if (CurVariant == -1) {
|
||||
cerr << "Found '}' character outside of variant in inline asm "
|
||||
<< "string: '" << AsmStr << "'\n";
|
||||
exit(1);
|
||||
}
|
||||
CurVariant = -1;
|
||||
if (CurVariant == -1)
|
||||
O << '}'; // this is gcc's behavior for } outside a variant
|
||||
else
|
||||
CurVariant = -1;
|
||||
break;
|
||||
}
|
||||
if (Done) break;
|
||||
|
Loading…
Reference in New Issue
Block a user