diff --git a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp index e68b78ad86a..3dc421713da 100644 --- a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp +++ b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp @@ -20,7 +20,7 @@ #include "SparcInternals.h" #include "SparcV9CodeEmitter.h" -bool UltraSparc::addPassesToEmitMachineCode(PassManager &PM, +bool UltraSparc::addPassesToEmitMachineCode(FunctionPassManager &PM, MachineCodeEmitter &MCE) { MachineCodeEmitter *M = &MCE; DEBUG(M = MachineCodeEmitter::createFilePrinterEmitter(MCE)); diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp index ecab5ca4935..41a3ab3b5ca 100644 --- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp +++ b/lib/Target/SparcV9/SparcV9TargetMachine.cpp @@ -225,7 +225,7 @@ bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) // addPassesToJITCompile - This method controls the JIT method of code // generation for the UltraSparc. // -bool UltraSparc::addPassesToJITCompile(PassManager &PM) { +bool UltraSparc::addPassesToJITCompile(FunctionPassManager &PM) { const TargetData &TD = getTargetData(); PM.add(new TargetData("lli", TD.isLittleEndian(), TD.getPointerSize(),