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:
Dale Johannesen 2008-10-10 21:04:42 +00:00
parent f8a4a0e959
commit 4f2791617e
1 changed files with 8 additions and 12 deletions

View File

@ -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;
} }