commit | f3a4d6b841de386e5604f99005d3ed19493505c3 | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Thu Jul 09 18:44:09 2009 +0000 |
committer | Owen Anderson <resistor@mac.com> | Thu Jul 09 18:44:09 2009 +0000 |
tree | 3db75f16f30d5fbe012890c2f557723e680d8d39 | |
parent | f94fead99bc140adc6e61dc80e5faf36f85288f7 [diff] [blame] |
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
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 260996f..2d15494 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -811,11 +811,11 @@ } 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() {