aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-11-07 17:44:18 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-11-07 17:44:18 +0000
commit941fc9acd97f0fa01963f501eb88be83da4327ab (patch)
tree4baeb0a7d68fa48727a6dc635692af94d9f853e5
parent7eabdc5fb840e01914520c81d190a0214bf8964b (diff)
We accept TargetMachine as a const reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9775 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/SparcV9/SparcV9PeepholeOpts.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/SparcV9/SparcV9PeepholeOpts.cpp b/lib/Target/SparcV9/SparcV9PeepholeOpts.cpp
index 9d50f35f54..83081b7120 100644
--- a/lib/Target/SparcV9/SparcV9PeepholeOpts.cpp
+++ b/lib/Target/SparcV9/SparcV9PeepholeOpts.cpp
@@ -112,7 +112,7 @@ class PeepholeOpts: public BasicBlockPass {
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 @@ bool PeepholeOpts::runOnBasicBlock(BasicBlock &BB) {
// 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);
}