CodePrinter -> AsmPrinter
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15599 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/PowerPC/PPC.h b/lib/Target/PowerPC/PPC.h
index e63892d..de4318d 100644
--- a/lib/Target/PowerPC/PPC.h
+++ b/lib/Target/PowerPC/PPC.h
@@ -25,7 +25,7 @@
// 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;
diff --git a/lib/Target/PowerPC/PPC32AsmPrinter.cpp b/lib/Target/PowerPC/PPC32AsmPrinter.cpp
index 62deac0..8f41683 100644
--- a/lib/Target/PowerPC/PPC32AsmPrinter.cpp
+++ b/lib/Target/PowerPC/PPC32AsmPrinter.cpp
@@ -85,12 +85,12 @@
};
} // 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);
}
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 62deac0..8f41683 100644
--- a/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -85,12 +85,12 @@
};
} // 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);
}
diff --git a/lib/Target/PowerPC/PPCTargetMachine.cpp b/lib/Target/PowerPC/PPCTargetMachine.cpp
index ca5abb2..438fd07 100644
--- a/lib/Target/PowerPC/PPCTargetMachine.cpp
+++ b/lib/Target/PowerPC/PPCTargetMachine.cpp
@@ -91,7 +91,7 @@
// 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;
}
diff --git a/lib/Target/PowerPC/PowerPCAsmPrinter.cpp b/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
index 62deac0..8f41683 100644
--- a/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
+++ b/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
@@ -85,12 +85,12 @@
};
} // 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);
}