diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-09 18:44:09 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-09 18:44:09 +0000 |
commit | 5dcaceb0a6a7fcf508d9898547e10d374b0e4cd1 (patch) | |
tree | 3db75f16f30d5fbe012890c2f557723e680d8d39 /lib/CodeGen | |
parent | 2a52c691403ef96d98f0c1013605e97d6aa99a6f (diff) | |
download | external_llvm-5dcaceb0a6a7fcf508d9898547e10d374b0e4cd1.tar.gz external_llvm-5dcaceb0a6a7fcf508d9898547e10d374b0e4cd1.tar.bz2 external_llvm-5dcaceb0a6a7fcf508d9898547e10d374b0e4cd1.zip |
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 | ||||
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 260996fac7..2d154942c7 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -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() { diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index d815523d82..485545c63a 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -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); |