aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-08-14 06:04:49 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-08-14 06:04:49 +0000
commit277aad2655b87402ecc48a0de8ad780d2816bc3a (patch)
tree60dc0212a8981306bb58df271dda6634a747ec42 /lib/CodeGen
parentd7d6bbe697ff3c7b28555e74b60a1ad18b375d5d (diff)
Factory methods for function passes now return type FunctionPass *.
Get rid of RegisterLLC, which can't handle FunctionPasses anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7836 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/InstrSelection/InstrSelection.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/CodeGen/InstrSelection/InstrSelection.cpp b/lib/CodeGen/InstrSelection/InstrSelection.cpp
index a666c5fe2e..835169aeeb 100644
--- a/lib/CodeGen/InstrSelection/InstrSelection.cpp
+++ b/lib/CodeGen/InstrSelection/InstrSelection.cpp
@@ -71,13 +71,10 @@ namespace {
}
bool runOnFunction(Function &F);
+ virtual const char *getPassName() const { return "Instruction Selection"; }
};
}
-// Register the pass...
-static RegisterLLC<InstructionSelection>
-X("instselect", "Instruction Selection", createInstructionSelectionPass);
-
TmpInstruction::TmpInstruction(MachineCodeForInstruction& mcfi,
Value *s1, Value *s2, const std::string &name)
: Instruction(s1->getType(), Instruction::UserOp1, name)
@@ -384,6 +381,6 @@ InstructionSelection::PostprocessMachineCodeForTree(InstructionNode* instrNode,
// createInstructionSelectionPass - Public entrypoint for instruction selection
// and this file as a whole...
//
-Pass *createInstructionSelectionPass(TargetMachine &T) {
+FunctionPass *createInstructionSelectionPass(TargetMachine &T) {
return new InstructionSelection(T);
}