diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-07-23 20:25:08 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-07-23 20:25:08 +0000 |
commit | de420aee32ea799eada24afb59857040172c75d1 (patch) | |
tree | ce9c881d05b1399c859bf7e4c101221e14d6285a /lib/Target/X86/X86.h | |
parent | b6ede8aaa0501f875f8b3b73fcd5e4bc71b4c2e2 (diff) | |
download | llvm-de420aee32ea799eada24afb59857040172c75d1.tar.gz llvm-de420aee32ea799eada24afb59857040172c75d1.tar.bz2 llvm-de420aee32ea799eada24afb59857040172c75d1.tar.xz |
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().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7275 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86.h')
-rw-r--r-- | lib/Target/X86/X86.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Target/X86/X86.h b/lib/Target/X86/X86.h index 84d6330b11..81c68da58e 100644 --- a/lib/Target/X86/X86.h +++ b/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 |