CodePrinter -> AsmPrinter

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15599 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Misha Brukman 2004-08-09 22:27:45 +00:00
parent b49f306bdf
commit 7103fba019
5 changed files with 11 additions and 11 deletions

View File

@ -25,7 +25,7 @@ class TargetMachine;
// Here is where you would define factory methods for powerpc-specific
// passes. For example:
FunctionPass *createPPCSimpleInstructionSelector(TargetMachine &TM);
FunctionPass *createPPCCodePrinterPass(std::ostream &OS, TargetMachine &TM);
FunctionPass *createPPCAsmPrinterPass(std::ostream &OS, TargetMachine &TM);
FunctionPass *createPowerPCPEI();
FunctionPass *createPPCBranchSelectionPass();
} // end namespace llvm;

View File

@ -85,12 +85,12 @@ namespace {
};
} // end of anonymous namespace
/// createPPCCodePrinterPass - Returns a pass that prints the PPC
/// createPPCAsmPrinterPass - Returns a pass that prints the PPC
/// assembly code for a MachineFunction to the given output stream,
/// using the given target machine description. This should work
/// regardless of whether the function is in SSA form.
/// regardless of whether the function is in SSA form or not.
///
FunctionPass *createPPCCodePrinterPass(std::ostream &o,TargetMachine &tm) {
FunctionPass *createPPCAsmPrinterPass(std::ostream &o,TargetMachine &tm) {
return new Printer(o, tm);
}

View File

@ -85,12 +85,12 @@ namespace {
};
} // end of anonymous namespace
/// createPPCCodePrinterPass - Returns a pass that prints the PPC
/// createPPCAsmPrinterPass - Returns a pass that prints the PPC
/// assembly code for a MachineFunction to the given output stream,
/// using the given target machine description. This should work
/// regardless of whether the function is in SSA form.
/// regardless of whether the function is in SSA form or not.
///
FunctionPass *createPPCCodePrinterPass(std::ostream &o,TargetMachine &tm) {
FunctionPass *createPPCAsmPrinterPass(std::ostream &o,TargetMachine &tm) {
return new Printer(o, tm);
}

View File

@ -91,7 +91,7 @@ bool PowerPCTargetMachine::addPassesToEmitAssembly(PassManager &PM,
// Must run branch selection immediately preceding the printer
PM.add(createPPCBranchSelectionPass());
PM.add(createPPCCodePrinterPass(Out, *this));
PM.add(createPPCAsmPrinterPass(Out, *this));
PM.add(createMachineCodeDeleter());
return false;
}

View File

@ -85,12 +85,12 @@ namespace {
};
} // end of anonymous namespace
/// createPPCCodePrinterPass - Returns a pass that prints the PPC
/// createPPCAsmPrinterPass - Returns a pass that prints the PPC
/// assembly code for a MachineFunction to the given output stream,
/// using the given target machine description. This should work
/// regardless of whether the function is in SSA form.
/// regardless of whether the function is in SSA form or not.
///
FunctionPass *createPPCCodePrinterPass(std::ostream &o,TargetMachine &tm) {
FunctionPass *createPPCAsmPrinterPass(std::ostream &o,TargetMachine &tm) {
return new Printer(o, tm);
}