Constify MachineFunctionAnalysis' TargetMachine reference.

llvm-svn: 86564
This commit is contained in:
Dan Gohman 2009-11-09 18:18:49 +00:00
parent 2256497780
commit 6f67f8902a
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ private:
public:
static char ID;
explicit MachineFunctionAnalysis(TargetMachine &tm,
explicit MachineFunctionAnalysis(const TargetMachine &tm,
CodeGenOpt::Level OL = CodeGenOpt::Default);
~MachineFunctionAnalysis();

View File

@ -24,7 +24,7 @@ X("Machine Function Analysis", "machine-function-analysis",
char MachineFunctionAnalysis::ID = 0;
MachineFunctionAnalysis::MachineFunctionAnalysis(TargetMachine &tm,
MachineFunctionAnalysis::MachineFunctionAnalysis(const TargetMachine &tm,
CodeGenOpt::Level OL) :
FunctionPass(&ID), TM(tm), OptLevel(OL), MF(0) {
}