mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 23:24:34 +00:00
Use dwarf writer to decide whether the module has debug info or not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62184 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user