From c5437ea42948f1e4cc89c0e8d944a380e6c880e7 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 24 Feb 2009 08:30:20 +0000 Subject: Overhaul my earlier submission due to feedback. It's a large patch, but most of them are generic changes. - Use the "fast" flag that's already being passed into the asm printers instead of shoving it into the DwarfWriter. - Instead of calling "MI->getParent()->getParent()" for every MI, set the machine function when calling "runOnMachineFunction" in the asm printers. llvm-svn: 65379 --- llvm/lib/Target/Mips/MipsTargetMachine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Target/Mips/MipsTargetMachine.cpp') diff --git a/llvm/lib/Target/Mips/MipsTargetMachine.cpp b/llvm/lib/Target/Mips/MipsTargetMachine.cpp index ff2e5b81589..4b13b78d020 100644 --- a/llvm/lib/Target/Mips/MipsTargetMachine.cpp +++ b/llvm/lib/Target/Mips/MipsTargetMachine.cpp @@ -128,6 +128,6 @@ addAssemblyEmitter(PassManagerBase &PM, bool Fast, raw_ostream &Out) { // Output assembly language. - PM.add(createMipsCodePrinterPass(Out, *this)); + PM.add(createMipsCodePrinterPass(Out, *this, Fast)); return false; } -- cgit v1.2.3