[llvm-commits] CVS: llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp

Brian Gaeke gaeke at niobe.cs.uiuc.edu
Thu Aug 14 01:05:07 PDT 2003


Changes in directory llvm/lib/CodeGen/InstrSelection:

InstrSelection.cpp updated: 1.59 -> 1.60

---
Log message:

Factory methods for function passes now return type FunctionPass *.
Get rid of RegisterLLC, which can't handle FunctionPasses anyway.


---
Diffs of the changes:

Index: llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp
diff -u llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp:1.59 llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp:1.60
--- llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp:1.59	Sat Jul 26 18:29:40 2003
+++ llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp	Thu Aug 14 01:04:48 2003
@@ -71,13 +71,10 @@
     }
     
     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 @@
 // createInstructionSelectionPass - Public entrypoint for instruction selection
 // and this file as a whole...
 //
-Pass *createInstructionSelectionPass(TargetMachine &T) {
+FunctionPass *createInstructionSelectionPass(TargetMachine &T) {
   return new InstructionSelection(T);
 }





More information about the llvm-commits mailing list