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/X86TargetMachine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Target/X86/X86TargetMachine.cpp') diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp index 1673fffd0c1..9137f6befc9 100644 --- a/llvm/lib/Target/X86/X86TargetMachine.cpp +++ b/llvm/lib/Target/X86/X86TargetMachine.cpp @@ -50,7 +50,7 @@ bool X86TargetMachine::addPassesToEmitAssembly(PassManager &PM, PM.add(createX86FloatingPointStackifierPass()); PM.add(createPrologEpilogCodeInserter()); PM.add(createX86PeepholeOptimizerPass()); - PM.add(createX86CodePrinterPass(Out)); + PM.add(createX86CodePrinterPass(Out, *this)); return false; // success! } @@ -92,7 +92,7 @@ bool X86TargetMachine::addPassesToJITCompile(PassManager &PM) { PM.add(createX86PeepholeOptimizerPass()); if (PrintCode) // Print the register-allocated code - PM.add(createX86CodePrinterPass(std::cerr)); + PM.add(createX86CodePrinterPass(std::cerr, *this)); return false; // success! } -- cgit v1.2.3