diff options
author | Devang Patel <dpatel@apple.com> | 2009-01-09 19:11:50 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-01-09 19:11:50 +0000 |
commit | 235acaa1312ab0a33b9ae3b0b562885a7ec7dc21 (patch) | |
tree | 4002f638c5dbf67f575fe6f8d48fc8c9ae0beef3 /llvm/lib/CodeGen | |
parent | c72e645fd6da47a5df13fcdc4d053d4e3a213377 (diff) | |
download | bcm5719-llvm-235acaa1312ab0a33b9ae3b0b562885a7ec7dc21.tar.gz bcm5719-llvm-235acaa1312ab0a33b9ae3b0b562885a7ec7dc21.zip |
Request DwarfWriter. This will be used to handle dbg_* intrinsics.
llvm-svn: 61999
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 5da693cae88..c755eac9516 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -772,9 +772,11 @@ SelectionDAG::SelectionDAG(TargetLowering &tli, FunctionLoweringInfo &fli) AllNodes.push_back(&EntryNode); } -void SelectionDAG::init(MachineFunction &mf, MachineModuleInfo *mmi) { +void SelectionDAG::init(MachineFunction &mf, MachineModuleInfo *mmi, + DwarfWriter *dw) { MF = &mf; MMI = mmi; + DW = dw; } SelectionDAG::~SelectionDAG() { diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 3221de064e3..4eb70198817 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -36,6 +36,7 @@ #include "llvm/CodeGen/ScheduleDAGSDNodes.h" #include "llvm/CodeGen/SchedulerRegistry.h" #include "llvm/CodeGen/SelectionDAG.h" +#include "llvm/CodeGen/DwarfWriter.h" #include "llvm/Target/TargetRegisterInfo.h" #include "llvm/Target/TargetData.h" #include "llvm/Target/TargetFrameInfo.h" @@ -288,6 +289,7 @@ unsigned SelectionDAGISel::MakeReg(MVT VT) { void SelectionDAGISel::getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<AliasAnalysis>(); AU.addRequired<GCModuleInfo>(); + AU.addRequired<DwarfWriter>(); AU.setPreservesAll(); } @@ -316,7 +318,8 @@ bool SelectionDAGISel::runOnFunction(Function &Fn) { FuncInfo->set(Fn, MF, EnableFastISel); MachineModuleInfo *MMI = getAnalysisToUpdate<MachineModuleInfo>(); - CurDAG->init(MF, MMI); + DwarfWriter *DW = getAnalysisToUpdate<DwarfWriter>(); + CurDAG->init(MF, MMI, DW); SDL->init(GFI, *AA); for (Function::iterator I = Fn.begin(), E = Fn.end(); I != E; ++I) |