mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Sink codegen optimization level into MCCodeGenInfo along side relocation model
and code model. This eliminates the need to pass OptLevel flag all over the place and makes it possible for any codegen pass to use this information. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144788 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -26,17 +26,14 @@ class MachineFunction;
|
||||
struct MachineFunctionAnalysis : public FunctionPass {
|
||||
private:
|
||||
const TargetMachine &TM;
|
||||
CodeGenOpt::Level OptLevel;
|
||||
MachineFunction *MF;
|
||||
unsigned NextFnNum;
|
||||
public:
|
||||
static char ID;
|
||||
explicit MachineFunctionAnalysis(const TargetMachine &tm,
|
||||
CodeGenOpt::Level OL = CodeGenOpt::Default);
|
||||
explicit MachineFunctionAnalysis(const TargetMachine &tm);
|
||||
~MachineFunctionAnalysis();
|
||||
|
||||
MachineFunction &getMF() const { return *MF; }
|
||||
CodeGenOpt::Level getOptLevel() const { return OptLevel; }
|
||||
|
||||
virtual const char* getPassName() const {
|
||||
return "Machine Function Analysis";
|
||||
|
Reference in New Issue
Block a user