forked from OSchip/llvm-project
Constify MachineFunctionAnalysis' TargetMachine reference.
llvm-svn: 86564
This commit is contained in:
parent
2256497780
commit
6f67f8902a
|
@ -31,7 +31,7 @@ private:
|
|||
|
||||
public:
|
||||
static char ID;
|
||||
explicit MachineFunctionAnalysis(TargetMachine &tm,
|
||||
explicit MachineFunctionAnalysis(const TargetMachine &tm,
|
||||
CodeGenOpt::Level OL = CodeGenOpt::Default);
|
||||
~MachineFunctionAnalysis();
|
||||
|
||||
|
|
|
@ -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) {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue