From a92dce471ba2dcd9cd4d8744d35fe81f5be8d7b6 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Wed, 23 Jul 2003 20:25:08 +0000 Subject: Printer.cpp: Ditch addRequired/getAnalysis, because they leave Printer::doFinalization() out in the cold. Now we pass in a TargetMachine to Printer's constructor and get the TargetData from the TargetMachine. Don't pass TargetMachine or MRegisterInfo objects around in the Printer. Constify TargetData references. X86.h: Update comment and prototype of createX86CodePrinterPass(). X86TargetMachine.cpp: Update callers of createX86CodePrinterPass(). llvm-svn: 7275 --- llvm/lib/Target/X86/X86.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'llvm/lib/Target/X86/X86.h') diff --git a/llvm/lib/Target/X86/X86.h b/llvm/lib/Target/X86/X86.h index 84d6330b115..81c68da58e9 100644 --- a/llvm/lib/Target/X86/X86.h +++ b/llvm/lib/Target/X86/X86.h @@ -29,11 +29,12 @@ Pass *createX86PeepholeOptimizerPass(); /// Pass *createX86FloatingPointStackifierPass(); -/// createX86CodePrinterPass - Print out the specified machine code function to -/// the specified stream. This function should work regardless of whether or -/// not the function is in SSA form or not. +/// createX86CodePrinterPass - Returns a pass that prints the X86 +/// assembly code for a MachineFunction to the given output stream, +/// using the given target machine description. This should work +/// regardless of whether the function is in SSA form. /// -Pass *createX86CodePrinterPass(std::ostream &O); +Pass *createX86CodePrinterPass(std::ostream &o, TargetMachine &tm); /// X86EmitCodeToMemory - This function converts a register allocated function /// into raw machine code in a dynamically allocated chunk of memory. A pointer -- cgit v1.2.3