summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-08-13 18:18:15 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-08-13 18:18:15 +0000
commit89207943a1737ea050b5f34c9738589963a1977e (patch)
treecc1e1b558c32dc038f7c091195cb67a14fbfaaac /llvm/lib/CodeGen
parentaa5866463973dee3bc32dd37b3796763607460d4 (diff)
downloadbcm5719-llvm-89207943a1737ea050b5f34c9738589963a1977e.tar.gz
bcm5719-llvm-89207943a1737ea050b5f34c9738589963a1977e.zip
Factory methods for FunctionPasses now return type FunctionPass *.
llvm-svn: 7823
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp6
-rw-r--r--llvm/lib/CodeGen/PrologEpilogInserter.cpp2
-rw-r--r--llvm/lib/CodeGen/RegAllocLocal.cpp2
-rw-r--r--llvm/lib/CodeGen/RegAllocSimple.cpp2
4 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 85bf4b6a272..f7aadc317e2 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -80,15 +80,15 @@ namespace {
};
}
-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();
}
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
index 06de9bf0240..13cd353362a 100644
--- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp
+++ b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
@@ -62,7 +62,7 @@ namespace {
/// 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
diff --git a/llvm/lib/CodeGen/RegAllocLocal.cpp b/llvm/lib/CodeGen/RegAllocLocal.cpp
index 1b84b30f57f..26269e1808c 100644
--- a/llvm/lib/CodeGen/RegAllocLocal.cpp
+++ b/llvm/lib/CodeGen/RegAllocLocal.cpp
@@ -643,6 +643,6 @@ bool RA::runOnMachineFunction(MachineFunction &Fn) {
return true;
}
-Pass *createLocalRegisterAllocator() {
+FunctionPass *createLocalRegisterAllocator() {
return new RA();
}
diff --git a/llvm/lib/CodeGen/RegAllocSimple.cpp b/llvm/lib/CodeGen/RegAllocSimple.cpp
index cb08986d143..ba571e4116e 100644
--- a/llvm/lib/CodeGen/RegAllocSimple.cpp
+++ b/llvm/lib/CodeGen/RegAllocSimple.cpp
@@ -224,6 +224,6 @@ bool RegAllocSimple::runOnMachineFunction(MachineFunction &Fn) {
return true;
}
-Pass *createSimpleRegisterAllocator() {
+FunctionPass *createSimpleRegisterAllocator() {
return new RegAllocSimple();
}
OpenPOWER on IntegriCloud