From 941fc9acd97f0fa01963f501eb88be83da4327ab Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Fri, 7 Nov 2003 17:44:18 +0000 Subject: [PATCH] We accept TargetMachine as a const reference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9775 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/SparcV9/SparcV9PeepholeOpts.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Target/SparcV9/SparcV9PeepholeOpts.cpp b/lib/Target/SparcV9/SparcV9PeepholeOpts.cpp index 9d50f35f541..83081b71203 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); } -- 2.11.0