[llvm-commits] CVS: llvm/lib/CodeGen/MachineFunction.cpp PrologEpilogInserter.cpp RegAllocLocal.cpp RegAllocSimple.cpp
Brian Gaeke
gaeke at niobe.cs.uiuc.edu
Wed Aug 13 13:19:25 PDT 2003
Changes in directory llvm/lib/CodeGen:
MachineFunction.cpp updated: 1.41 -> 1.42
PrologEpilogInserter.cpp updated: 1.11 -> 1.12
RegAllocLocal.cpp updated: 1.23 -> 1.24
RegAllocSimple.cpp updated: 1.41 -> 1.42
---
Log message:
Factory methods for FunctionPasses now return type FunctionPass *.
---
Diffs of the changes:
Index: llvm/lib/CodeGen/MachineFunction.cpp
diff -u llvm/lib/CodeGen/MachineFunction.cpp:1.41 llvm/lib/CodeGen/MachineFunction.cpp:1.42
--- llvm/lib/CodeGen/MachineFunction.cpp:1.41 Sat Jul 26 18:24:56 2003
+++ llvm/lib/CodeGen/MachineFunction.cpp Wed Aug 13 13:18:12 2003
@@ -80,15 +80,15 @@
};
}
-Pass *createMachineCodeConstructionPass(TargetMachine &Target) {
+FunctionPass *createMachineCodeConstructionPass(TargetMachine &Target) {
return new ConstructMachineFunction(Target);
}
-Pass *createMachineCodeDestructionPass() {
+FunctionPass *createMachineCodeDestructionPass() {
return new DestroyMachineFunction();
}
-Pass *createMachineFunctionPrinterPass() {
+FunctionPass *createMachineFunctionPrinterPass() {
return new Printer();
}
Index: llvm/lib/CodeGen/PrologEpilogInserter.cpp
diff -u llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.11 llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.12
--- llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.11 Mon May 26 19:05:17 2003
+++ llvm/lib/CodeGen/PrologEpilogInserter.cpp Wed Aug 13 13:18:12 2003
@@ -62,7 +62,7 @@
/// createPrologEpilogCodeInserter - This function returns a pass that inserts
/// prolog and epilog code, and eliminates abstract frame references.
///
-Pass *createPrologEpilogCodeInserter() { return new PEI(); }
+FunctionPass *createPrologEpilogCodeInserter() { return new PEI(); }
/// saveCallerSavedRegisters - Scan the function for modified caller saved
Index: llvm/lib/CodeGen/RegAllocLocal.cpp
diff -u llvm/lib/CodeGen/RegAllocLocal.cpp:1.23 llvm/lib/CodeGen/RegAllocLocal.cpp:1.24
--- llvm/lib/CodeGen/RegAllocLocal.cpp:1.23 Mon Aug 4 23:13:58 2003
+++ llvm/lib/CodeGen/RegAllocLocal.cpp Wed Aug 13 13:18:12 2003
@@ -643,6 +643,6 @@
return true;
}
-Pass *createLocalRegisterAllocator() {
+FunctionPass *createLocalRegisterAllocator() {
return new RA();
}
Index: llvm/lib/CodeGen/RegAllocSimple.cpp
diff -u llvm/lib/CodeGen/RegAllocSimple.cpp:1.41 llvm/lib/CodeGen/RegAllocSimple.cpp:1.42
--- llvm/lib/CodeGen/RegAllocSimple.cpp:1.41 Sun Aug 3 16:47:31 2003
+++ llvm/lib/CodeGen/RegAllocSimple.cpp Wed Aug 13 13:18:12 2003
@@ -224,6 +224,6 @@
return true;
}
-Pass *createSimpleRegisterAllocator() {
+FunctionPass *createSimpleRegisterAllocator() {
return new RegAllocSimple();
}
More information about the llvm-commits
mailing list