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

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


Changes in directory llvm/lib/CodeGen/PostOpts:

PeepholeOpts.cpp updated: 1.7 -> 1.8

---
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/PostOpts/PeepholeOpts.cpp
diff -u llvm/lib/CodeGen/PostOpts/PeepholeOpts.cpp:1.7 llvm/lib/CodeGen/PostOpts/PeepholeOpts.cpp:1.8
--- llvm/lib/CodeGen/PostOpts/PeepholeOpts.cpp:1.7	Fri May 23 14:20:57 2003
+++ llvm/lib/CodeGen/PostOpts/PeepholeOpts.cpp	Thu Aug 14 01:04:49 2003
@@ -68,12 +68,6 @@
   bool runOnBasicBlock(BasicBlock &BB); // apply this pass to each BB
 };
 
-
-// Register the pass with llc only, and not opt...
-static RegisterLLC<PeepholeOpts>
-X("peephole", "Peephole Optimization", createPeepholeOptsPass);
-
-
 /* Apply a list of peephole optimizations to this machine instruction
  * within its local context.  They are allowed to delete MI or any
  * instruction before MI, but not 
@@ -128,7 +122,7 @@
 // createPeepholeOptsPass - Public entrypoint for peephole optimization
 // and this file as a whole...
 //
-Pass*
+FunctionPass*
 createPeepholeOptsPass(TargetMachine &T)
 {
   return new PeepholeOpts(T);





More information about the llvm-commits mailing list