mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Constify MachineFunctionAnalysis' TargetMachine reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86564 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1edb8e0910
commit
28a4c78621
@ -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
Block a user