diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-05 02:23:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-05 02:23:33 +0000 |
commit | ab5dc34351c8f64ed8f59d8deadf8472830d5771 (patch) | |
tree | 9bca433b7e7f075832ce0d16e001f22607ce1b08 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | 7cfa70e9b33a5a6c352fe71d668a7f3c12224a91 (diff) | |
download | bcm5719-llvm-ab5dc34351c8f64ed8f59d8deadf8472830d5771.tar.gz bcm5719-llvm-ab5dc34351c8f64ed8f59d8deadf8472830d5771.zip |
selection dag doesn't need DwarfWriter, remove some tendrils.
llvm-svn: 100382
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index b06239f4182..049550bf212 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -40,7 +40,6 @@ #include "llvm/CodeGen/MachineRegisterInfo.h" #include "llvm/CodeGen/PseudoSourceValue.h" #include "llvm/CodeGen/SelectionDAG.h" -#include "llvm/CodeGen/DwarfWriter.h" #include "llvm/Analysis/DebugInfo.h" #include "llvm/Target/TargetRegisterInfo.h" #include "llvm/Target/TargetData.h" @@ -3798,9 +3797,6 @@ SelectionDAGBuilder::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) { if (OptLevel != CodeGenOpt::None) // FIXME: Variable debug info is not supported here. return 0; - DwarfWriter *DW = DAG.getDwarfWriter(); - if (!DW) - return 0; DbgDeclareInst &DI = cast<DbgDeclareInst>(I); if (!DIDescriptor::ValidDebugInfo(DI.getVariable(), CodeGenOpt::None)) return 0; @@ -3822,14 +3818,11 @@ SelectionDAGBuilder::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) { int FI = SI->second; if (MachineModuleInfo *MMI = DAG.getMachineModuleInfo()) - if (!DI.getDebugLoc().isUnknown()) + if (!DI.getDebugLoc().isUnknown() && MMI->hasDebugInfo()) MMI->setVariableDbgInfo(Variable, FI, DI.getDebugLoc()); return 0; } case Intrinsic::dbg_value: { - DwarfWriter *DW = DAG.getDwarfWriter(); - if (!DW) - return 0; DbgValueInst &DI = cast<DbgValueInst>(I); if (!DIDescriptor::ValidDebugInfo(DI.getVariable(), CodeGenOpt::None)) return 0; @@ -3875,7 +3868,7 @@ SelectionDAGBuilder::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) { int FI = SI->second; if (MachineModuleInfo *MMI = DAG.getMachineModuleInfo()) - if (!DI.getDebugLoc().isUnknown()) + if (!DI.getDebugLoc().isUnknown() && MMI->hasDebugInfo()) MMI->setVariableDbgInfo(Variable, FI, DI.getDebugLoc()); return 0; } |