mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Fix test/CFrontend/2007-01-24-InlineAsmCModifier.c on X86. The %c modifier
says that no $ prefix should be emitted on X86. llvm-svn: 33495
This commit is contained in:
parent
c3f461a03c
commit
18aeb42a6f
@ -219,7 +219,8 @@ void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
|
||||
}
|
||||
|
||||
case MachineOperand::MO_Immediate:
|
||||
if (!Modifier || strcmp(Modifier, "debug") != 0)
|
||||
if (!Modifier ||
|
||||
(strcmp(Modifier, "debug") && strcmp(Modifier, "mem")))
|
||||
O << '$';
|
||||
O << MO.getImmedValue();
|
||||
return;
|
||||
@ -491,7 +492,7 @@ bool X86ATTAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
|
||||
|
||||
switch (ExtraCode[0]) {
|
||||
default: return true; // Unknown modifier.
|
||||
case 'c': // Don't print "$" before a global var name.
|
||||
case 'c': // Don't print "$" before a global var name or constant.
|
||||
printOperand(MI, OpNo, "mem");
|
||||
return false;
|
||||
case 'b': // Print QImode register
|
||||
|
Loading…
Reference in New Issue
Block a user