[llvm-commits] CVS: llvm/lib/Target/Sparc/PeepholeOpts.cpp
Misha Brukman
brukman at cs.uiuc.edu
Fri Nov 7 11:45:01 PST 2003
Changes in directory llvm/lib/Target/Sparc:
PeepholeOpts.cpp updated: 1.14 -> 1.15
---
Log message:
We accept TargetMachine as a const reference.
---
Diffs of the changes: (+3 -3)
Index: llvm/lib/Target/Sparc/PeepholeOpts.cpp
diff -u llvm/lib/Target/Sparc/PeepholeOpts.cpp:1.14 llvm/lib/Target/Sparc/PeepholeOpts.cpp:1.15
--- llvm/lib/Target/Sparc/PeepholeOpts.cpp:1.14 Tue Oct 21 07:29:45 2003
+++ llvm/lib/Target/Sparc/PeepholeOpts.cpp Fri Nov 7 11:44:18 2003
@@ -112,7 +112,7 @@
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"; }
};
@@ -160,6 +160,6 @@
// 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);
}
More information about the llvm-commits
mailing list