From cbd3a40626e00ec20d46efca6def0e27113352ca Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Thu, 14 Aug 2003 06:04:49 +0000 Subject: Factory methods for function passes now return type FunctionPass *. Get rid of RegisterLLC, which can't handle FunctionPasses anyway. llvm-svn: 7836 --- llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp') diff --git a/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp b/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp index a666c5fe2e1..835169aeeb8 100644 --- a/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp +++ b/llvm/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 -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); } -- cgit v1.2.3