Remove some overzealous checks that were rejecting
valid comments in inline assembly. gcc.target/i386/20011009-1.c llvm-svn: 57365
This commit is contained in:
parent
f8a4a0e959
commit
4f2791617e
|
@ -1246,20 +1246,16 @@ void AsmPrinter::printInlineAsm(const MachineInstr *MI) const {
|
||||||
break;
|
break;
|
||||||
case '|':
|
case '|':
|
||||||
++LastEmitted; // consume '|' character.
|
++LastEmitted; // consume '|' character.
|
||||||
if (CurVariant == -1) {
|
if (CurVariant == -1)
|
||||||
cerr << "Found '|' character outside of variant in inline asm "
|
O << '|'; // this is gcc's behavior for | outside a variant
|
||||||
<< "string: '" << AsmStr << "'\n";
|
else
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
++CurVariant; // We're in the next variant.
|
++CurVariant; // We're in the next variant.
|
||||||
break;
|
break;
|
||||||
case ')': // $) -> same as GCC's } char.
|
case ')': // $) -> same as GCC's } char.
|
||||||
++LastEmitted; // consume ')' character.
|
++LastEmitted; // consume ')' character.
|
||||||
if (CurVariant == -1) {
|
if (CurVariant == -1)
|
||||||
cerr << "Found '}' character outside of variant in inline asm "
|
O << '}'; // this is gcc's behavior for } outside a variant
|
||||||
<< "string: '" << AsmStr << "'\n";
|
else
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
CurVariant = -1;
|
CurVariant = -1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue