diff options
| author | Devang Patel <dpatel@apple.com> | 2009-01-13 21:25:00 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2009-01-13 21:25:00 +0000 |
| commit | ca997988c3946808e0688354e055c898d2ea448f (patch) | |
| tree | 10f4be8031dbe6ac6791f2c67a7e24529f1db697 /llvm/lib/CodeGen/SelectionDAG | |
| parent | d064502da3857a2de3c442d29c233cba08db4256 (diff) | |
| download | bcm5719-llvm-ca997988c3946808e0688354e055c898d2ea448f.tar.gz bcm5719-llvm-ca997988c3946808e0688354e055c898d2ea448f.zip | |
Use dwarf writer to decide whether the module has debug info or not.
llvm-svn: 62184
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 324b07025e0..65a3e07b044 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -23,6 +23,7 @@ #include "llvm/CodeGen/MachineConstantPool.h" #include "llvm/CodeGen/MachineFrameInfo.h" #include "llvm/CodeGen/MachineModuleInfo.h" +#include "llvm/CodeGen/DwarfWriter.h" #include "llvm/CodeGen/PseudoSourceValue.h" #include "llvm/Target/TargetRegisterInfo.h" #include "llvm/Target/TargetData.h" @@ -2040,8 +2041,8 @@ bool SelectionDAG::isVerifiedDebugInfoDesc(SDValue Op) const { if (GA->getOffset() != 0) return false; GlobalVariable *GV = dyn_cast<GlobalVariable>(GA->getGlobal()); if (!GV) return false; - MachineModuleInfo *MMI = getMachineModuleInfo(); - return MMI && MMI->hasDebugInfo() && MMI->isVerified(GV); + DwarfWriter *DW = getDwarfWriter(); + return DW && DW->hasDebugInfo(); } |

