mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Use PassManagerBase instead of FunctionPassManager for functions
that merely add passes. This allows them to be used with either FunctionPassManager or PassManager, or even with a custom new kind of pass manager. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48256 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -73,17 +73,17 @@ IA64TargetMachine::IA64TargetMachine(const Module &M, const std::string &FS)
|
||||
// Pass Pipeline Configuration
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
bool IA64TargetMachine::addInstSelector(FunctionPassManager &PM, bool Fast) {
|
||||
bool IA64TargetMachine::addInstSelector(PassManagerBase &PM, bool Fast) {
|
||||
PM.add(createIA64DAGToDAGInstructionSelector(*this));
|
||||
return false;
|
||||
}
|
||||
|
||||
bool IA64TargetMachine::addPreEmitPass(FunctionPassManager &PM, bool Fast) {
|
||||
bool IA64TargetMachine::addPreEmitPass(PassManagerBase &PM, bool Fast) {
|
||||
// Make sure everything is bundled happily
|
||||
PM.add(createIA64BundlingPass(*this));
|
||||
return true;
|
||||
}
|
||||
bool IA64TargetMachine::addAssemblyEmitter(FunctionPassManager &PM, bool Fast,
|
||||
bool IA64TargetMachine::addAssemblyEmitter(PassManagerBase &PM, bool Fast,
|
||||
std::ostream &Out) {
|
||||
PM.add(createIA64CodePrinterPass(Out, *this));
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user