Cygwin apparently works with %'s on registers!
authorChris Lattner <sabre@nondot.org>
Mon, 11 Aug 2003 20:04:57 +0000 (20:04 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 11 Aug 2003 20:04:57 +0000 (20:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7745 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/Printer.cpp
lib/Target/X86/X86AsmPrinter.cpp

index 3fc6c6f44646d047e26a598053f1823e4940c3b2..db55593ad7a7c731ddc8b7a38902a276cda012f9 100644 (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
 }
index 3fc6c6f44646d047e26a598053f1823e4940c3b2..db55593ad7a7c731ddc8b7a38902a276cda012f9 100644 (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
 }