From 74be3a579403d27df14571a8c7ba7fe7ad28745a Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Sat, 11 Dec 2004 22:17:07 +0000 Subject: [PATCH] Print llvm code one function at a time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18805 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Sparc/SparcTargetMachine.cpp | 2 +- lib/Target/SparcV8/SparcV8TargetMachine.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/Sparc/SparcTargetMachine.cpp b/lib/Target/Sparc/SparcTargetMachine.cpp index 8059853bc21..a867503573d 100644 --- a/lib/Target/Sparc/SparcTargetMachine.cpp +++ b/lib/Target/Sparc/SparcTargetMachine.cpp @@ -82,7 +82,7 @@ bool SparcV8TargetMachine::addPassesToEmitAssembly(PassManager &PM, // Print LLVM code input to instruction selector: if (PrintMachineCode) - PM.add(new PrintModulePass()); + PM.add(new PrintFunctionPass()); PM.add(createSparcV8SimpleInstructionSelector(*this)); diff --git a/lib/Target/SparcV8/SparcV8TargetMachine.cpp b/lib/Target/SparcV8/SparcV8TargetMachine.cpp index 8059853bc21..a867503573d 100644 --- a/lib/Target/SparcV8/SparcV8TargetMachine.cpp +++ b/lib/Target/SparcV8/SparcV8TargetMachine.cpp @@ -82,7 +82,7 @@ bool SparcV8TargetMachine::addPassesToEmitAssembly(PassManager &PM, // Print LLVM code input to instruction selector: if (PrintMachineCode) - PM.add(new PrintModulePass()); + PM.add(new PrintFunctionPass()); PM.add(createSparcV8SimpleInstructionSelector(*this)); -- 2.34.1