bool visit(MachineBasicBlock& mvec,
MachineBasicBlock::iterator BBI) const;
public:
- PeepholeOpts(const TargetMachine &T): target(T) { }
+ PeepholeOpts(const TargetMachine &TM): target(TM) { }
bool runOnBasicBlock(BasicBlock &BB); // apply this pass to each BB
virtual const char *getPassName() const { return "Peephole Optimization"; }
};
// createPeepholeOptsPass - Public entrypoint for peephole optimization
// and this file as a whole...
//
-FunctionPass* createPeepholeOptsPass(TargetMachine &T) {
- return new PeepholeOpts(T);
+FunctionPass* createPeepholeOptsPass(const TargetMachine &TM) {
+ return new PeepholeOpts(TM);
}