Cygwin apparently works with %'s on registers!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7745 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-08-11 20:04:57 +00:00
parent 80d79fa5b4
commit 67488a9236
2 changed files with 4 additions and 10 deletions

View File

@ -464,7 +464,6 @@ void Printer::printOp(const MachineOperand &MO,
case MachineOperand::MO_MachineRegister:
if (MO.getReg() < MRegisterInfo::FirstVirtualRegister) {
// Bug Workaround: See note in Printer::doInitialization about %.
if (!EmitCygwin) O << "%";
O << RI.get(MO.getReg()).Name;
} else
O << "%reg" << MO.getReg();
@ -567,7 +566,7 @@ void Printer::checkImplUses (const TargetInstrDescriptor &Desc) {
if (Desc.TSFlags & X86II::PrintImplUses) {
for (const unsigned *p = Desc.ImplicitUses; *p; ++p) {
// Bug Workaround: See note in Printer::doInitialization about %.
O << ", " << (EmitCygwin ? "" : "%") << RI.get(*p).Name;
O << ", %" << RI.get(*p).Name;
}
}
}
@ -923,9 +922,7 @@ bool Printer::doInitialization(Module &M) {
//
// Cygwin presumably doesn't have this problem, so drop the %'s.
//
O << "\t.intel_syntax";
if (EmitCygwin) O << " noprefix";
O << "\n";
O << "\t.intel_syntax\n";
Mang = new Mangler(M, EmitCygwin);
return false; // success
}

View File

@ -464,7 +464,6 @@ void Printer::printOp(const MachineOperand &MO,
case MachineOperand::MO_MachineRegister:
if (MO.getReg() < MRegisterInfo::FirstVirtualRegister) {
// Bug Workaround: See note in Printer::doInitialization about %.
if (!EmitCygwin) O << "%";
O << RI.get(MO.getReg()).Name;
} else
O << "%reg" << MO.getReg();
@ -567,7 +566,7 @@ void Printer::checkImplUses (const TargetInstrDescriptor &Desc) {
if (Desc.TSFlags & X86II::PrintImplUses) {
for (const unsigned *p = Desc.ImplicitUses; *p; ++p) {
// Bug Workaround: See note in Printer::doInitialization about %.
O << ", " << (EmitCygwin ? "" : "%") << RI.get(*p).Name;
O << ", %" << RI.get(*p).Name;
}
}
}
@ -923,9 +922,7 @@ bool Printer::doInitialization(Module &M) {
//
// Cygwin presumably doesn't have this problem, so drop the %'s.
//
O << "\t.intel_syntax";
if (EmitCygwin) O << " noprefix";
O << "\n";
O << "\t.intel_syntax\n";
Mang = new Mangler(M, EmitCygwin);
return false; // success
}