mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
As Chris pointed out, we don't actually need to pass the context around here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75161 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2a52c69140
commit
5dcaceb0a6
@ -126,8 +126,7 @@ public:
|
||||
/// init - Prepare this SelectionDAG to process code in the given
|
||||
/// MachineFunction.
|
||||
///
|
||||
void init(MachineFunction &mf, MachineModuleInfo *mmi, DwarfWriter *dw,
|
||||
LLVMContext* C);
|
||||
void init(MachineFunction &mf, MachineModuleInfo *mmi, DwarfWriter *dw);
|
||||
|
||||
/// clear - Clear state and free memory necessary to make this
|
||||
/// SelectionDAG ready to process a new block.
|
||||
|
@ -811,11 +811,11 @@ SelectionDAG::SelectionDAG(TargetLowering &tli, FunctionLoweringInfo &fli)
|
||||
}
|
||||
|
||||
void SelectionDAG::init(MachineFunction &mf, MachineModuleInfo *mmi,
|
||||
DwarfWriter *dw, LLVMContext* C) {
|
||||
DwarfWriter *dw) {
|
||||
MF = &mf;
|
||||
MMI = mmi;
|
||||
DW = dw;
|
||||
Context = C;
|
||||
Context = mf.getFunction()->getContext();
|
||||
}
|
||||
|
||||
SelectionDAG::~SelectionDAG() {
|
||||
|
@ -319,7 +319,7 @@ bool SelectionDAGISel::runOnFunction(Function &Fn) {
|
||||
|
||||
MachineModuleInfo *MMI = getAnalysisIfAvailable<MachineModuleInfo>();
|
||||
DwarfWriter *DW = getAnalysisIfAvailable<DwarfWriter>();
|
||||
CurDAG->init(*MF, MMI, DW, Context);
|
||||
CurDAG->init(*MF, MMI, DW);
|
||||
FuncInfo->set(Fn, *MF, *CurDAG, EnableFastISel);
|
||||
SDL->init(GFI, *AA);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user