aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/X86/Printer.cpp7
-rw-r--r--lib/Target/X86/X86AsmPrinter.cpp7
-rw-r--r--lib/Target/X86/X86InstrInfo.h3
3 files changed, 10 insertions, 7 deletions
diff --git a/lib/Target/X86/Printer.cpp b/lib/Target/X86/Printer.cpp
index f4c9833af5..f64c60377c 100644
--- a/lib/Target/X86/Printer.cpp
+++ b/lib/Target/X86/Printer.cpp
@@ -41,7 +41,7 @@ bool Printer::runOnFunction (Function & F)
MachineFunction & MF = MachineFunction::get (&F);
const MachineInstrInfo & MII = TM.getInstrInfo ();
- O << "# x86 printing only sorta implemented so far!\n";
+ O << "; x86 printing only sorta implemented so far!\n";
// Print out labels for the function.
O << "\t.globl\t" << F.getName () << "\n";
@@ -59,7 +59,7 @@ bool Printer::runOnFunction (Function & F)
{
// Print the assembly for the instruction.
O << "\t";
- MII.print(*i_i, O);
+ MII.print(*i_i, O, TM);
}
}
@@ -69,7 +69,8 @@ bool Printer::runOnFunction (Function & F)
// print - Print out an x86 instruction in intel syntax
-void X86InstrInfo::print(const MachineInstr *MI, std::ostream &O) const {
+void X86InstrInfo::print(const MachineInstr *MI, std::ostream &O,
+ const TargetMachine &TM) const {
// FIXME: This sucks.
O << getName(MI->getOpCode()) << "\n";
}
diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp
index f4c9833af5..f64c60377c 100644
--- a/lib/Target/X86/X86AsmPrinter.cpp
+++ b/lib/Target/X86/X86AsmPrinter.cpp
@@ -41,7 +41,7 @@ bool Printer::runOnFunction (Function & F)
MachineFunction & MF = MachineFunction::get (&F);
const MachineInstrInfo & MII = TM.getInstrInfo ();
- O << "# x86 printing only sorta implemented so far!\n";
+ O << "; x86 printing only sorta implemented so far!\n";
// Print out labels for the function.
O << "\t.globl\t" << F.getName () << "\n";
@@ -59,7 +59,7 @@ bool Printer::runOnFunction (Function & F)
{
// Print the assembly for the instruction.
O << "\t";
- MII.print(*i_i, O);
+ MII.print(*i_i, O, TM);
}
}
@@ -69,7 +69,8 @@ bool Printer::runOnFunction (Function & F)
// print - Print out an x86 instruction in intel syntax
-void X86InstrInfo::print(const MachineInstr *MI, std::ostream &O) const {
+void X86InstrInfo::print(const MachineInstr *MI, std::ostream &O,
+ const TargetMachine &TM) const {
// FIXME: This sucks.
O << getName(MI->getOpCode()) << "\n";
}
diff --git a/lib/Target/X86/X86InstrInfo.h b/lib/Target/X86/X86InstrInfo.h
index c0451643a5..b31278a6a3 100644
--- a/lib/Target/X86/X86InstrInfo.h
+++ b/lib/Target/X86/X86InstrInfo.h
@@ -32,7 +32,8 @@ public:
/// print - Print out an x86 instruction in intel syntax
///
- virtual void print(const MachineInstr *MI, std::ostream &O) const;
+ virtual void print(const MachineInstr *MI, std::ostream &O,
+ const TargetMachine &TM) const;
//===--------------------------------------------------------------------===//