As Chris pointed out, we don't actually need to pass the context around here.
llvm-svn: 75161
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 260996f..2d15494 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/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() {