summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86.h
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-07-23 20:25:08 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-07-23 20:25:08 +0000
commita92dce471ba2dcd9cd4d8744d35fe81f5be8d7b6 (patch)
tree939789c3a4753df82cc80af05eb7a39b4c5458ac /llvm/lib/Target/X86/X86.h
parent4b4dacd838fcceddd641e5ca41187b46ad5cd447 (diff)
downloadbcm5719-llvm-a92dce471ba2dcd9cd4d8744d35fe81f5be8d7b6.tar.gz
bcm5719-llvm-a92dce471ba2dcd9cd4d8744d35fe81f5be8d7b6.zip
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
Diffstat (limited to 'llvm/lib/Target/X86/X86.h')
-rw-r--r--llvm/lib/Target/X86/X86.h9
1 files changed, 5 insertions, 4 deletions
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
OpenPOWER on IntegriCloud