summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-09 18:44:09 +0000
committerOwen Anderson <resistor@mac.com>2009-07-09 18:44:09 +0000
commit092bc51cdbfb08e0ec4473963df806af09b26370 (patch)
tree67cf8cf3376ef01cbaadd99c68ec63879c940718 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent55b97265967e0aabcfc4e2fd2dcc3c67253fecdc (diff)
downloadbcm5719-llvm-092bc51cdbfb08e0ec4473963df806af09b26370.tar.gz
bcm5719-llvm-092bc51cdbfb08e0ec4473963df806af09b26370.zip
As Chris pointed out, we don't actually need to pass the context around here.
llvm-svn: 75161
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 260996fac7a..2d154942c75 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/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() {
OpenPOWER on IntegriCloud