[llvm-commits] CVS: llvm/lib/Target/X86/Printer.cpp
Brian Gaeke
gaeke at niobe.cs.uiuc.edu
Wed Aug 13 13:16:01 PDT 2003
Changes in directory llvm/lib/Target/X86:
Printer.cpp updated: 1.58 -> 1.59
---
Log message:
Factory methods for FunctionPasses now return type FunctionPass *.
Revert (to v1.55) one of the hunks of Chris's change that messed up the
%-register workaround.
---
Diffs of the changes:
Index: llvm/lib/Target/X86/Printer.cpp
diff -u llvm/lib/Target/X86/Printer.cpp:1.58 llvm/lib/Target/X86/Printer.cpp:1.59
--- llvm/lib/Target/X86/Printer.cpp:1.58 Mon Aug 11 15:06:16 2003
+++ llvm/lib/Target/X86/Printer.cpp Wed Aug 13 13:15:15 2003
@@ -81,7 +81,7 @@
/// using the given target machine description. This should work
/// regardless of whether the function is in SSA form.
///
-Pass *createX86CodePrinterPass(std::ostream &o, TargetMachine &tm) {
+FunctionPass *createX86CodePrinterPass(std::ostream &o,TargetMachine &tm){
return new Printer(o, tm);
}
@@ -461,10 +461,10 @@
}
// FALLTHROUGH
case MachineOperand::MO_MachineRegister:
- if (MO.getReg() < MRegisterInfo::FirstVirtualRegister) {
+ if (MO.getReg() < MRegisterInfo::FirstVirtualRegister)
// Bug Workaround: See note in Printer::doInitialization about %.
- O << RI.get(MO.getReg()).Name;
- } else
+ O << "%" << RI.get(MO.getReg()).Name;
+ else
O << "%reg" << MO.getReg();
return;
@@ -918,9 +918,6 @@
// before being looked up in the symbol table. This creates spurious
// `undefined symbol' errors when linking. Workaround: Do not use `noprefix'
// mode, and decorate all register names with percent signs.
- //
- // Cygwin presumably doesn't have this problem, so drop the %'s.
- //
O << "\t.intel_syntax\n";
Mang = new Mangler(M, EmitCygwin);
return false; // success
More information about the llvm-commits
mailing list