From: Misha Brukman Date: Fri, 7 Nov 2003 17:44:18 +0000 (+0000) Subject: We accept TargetMachine as a const reference. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=941fc9acd97f0fa01963f501eb88be83da4327ab;p=oota-llvm.git We accept TargetMachine as a const reference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9775 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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); }