[llvm-commits] CVS: llvm/lib/Target/X86/Printer.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Aug 11 15:06:05 PDT 2003


Changes in directory llvm/lib/Target/X86:

Printer.cpp updated: 1.56 -> 1.57

---
Log message:

Cygwin apparently works with %'s on registers!


---
Diffs of the changes:

Index: llvm/lib/Target/X86/Printer.cpp
diff -u llvm/lib/Target/X86/Printer.cpp:1.56 llvm/lib/Target/X86/Printer.cpp:1.57
--- llvm/lib/Target/X86/Printer.cpp:1.56	Mon Aug 11 14:35:26 2003
+++ llvm/lib/Target/X86/Printer.cpp	Mon Aug 11 15:04:57 2003
@@ -464,7 +464,6 @@
   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 @@
   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 @@
   //
   // 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
 }





More information about the llvm-commits mailing list